[9fans] dns failure - Plan9

This is a discussion on [9fans] dns failure - Plan9 ; Hi, I've installed Plan9 3 weeks ago for the first time. Since that it replaced my Linux box for daily work more and more. But I can't set up SMTP. From what I can tell, I've done everything correctly to ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: [9fans] dns failure

  1. [9fans] dns failure

    Hi,

    I've installed Plan9 3 weeks ago for the first time. Since that it replaced my Linux box for daily work more and more.

    But I can't set up SMTP. From what I can tell, I've done everything correctly to set it up for my machine.
    I've set smtp=mgate.chello.at in /lib/ndb/local. I've copied /mail/lib/rewrite.gateway to /lib/mail/gateway. I've modified /mail/lib/remotemail to pass the -a flag to upas/smtp.

    con output:

    term% con -l tcp!mgate.chello.at!smtp
    connected to tcp!mgate.chello.at!smtp on /net/tcp/5
    220 viefep11-int.chello.at ESMTP server (InterMail vM.7.08.02.00 201-2186-121-20061213) ready Thu, 3 May 2007 11:12:04 +0200

    term% con -l tcp!213.46.255.2!smtp
    connected to tcp!213.46.255.2!smtp on /net/tcp/2
    220 viefep11-int.chello.at ESMTP server (InterMail vM.7.08.02.00 201-2186-121-20061213) ready Thu, 3 May 2007 11:40:49 +0200

    Running following commad gets:

    term% upas/smtp -d -as -h yourdomain.dom net!mgate.chello.at user csae9638@uibk.ac.at

    ns: dns: dns failure
    smtp: dns: dns failure (net!mgate.chello.at)
    smtp 147: Retry, Temporary Failure

    relevant part from my /lib/ndb/local:

    ipnet=msnet ip=192.168.0.0 ipmask=255.255.255.0
    ipgw=192.168.0.1
    dns=1.2.3.4
    smtp=mgate.chello.at
    auth=gonzo


    --
    "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
    Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

  2. Re: [9fans] dns failure

    > term% upas/smtp -d -as -h yourdomain.dom net!mgate.chello.at user csae9638@uibk.ac.at

    I assume you are not really seting your from-domain to be "yourdomain.dom" ?

    the relevant bit of my /mail/lib/remotemail looks like:

    fd=quintile.net
    exec /bin/upas/smtp -g $addr -h $fd $addr $sender $*

    also, try this:

    ndb/ipquery sys $sysname smtp # Note the $ here is not escaped

    which should print

    smtp=mgate.chello.at

    I.E. your /lib/ndb/local is consistent and being resolved correctly.


    -Steve

  3. Re: [9fans] dns failure



    > the relevant bit of my /mail/lib/remotemail looks like:
    >
    > fd=quintile.net
    > exec /bin/upas/smtp -g $addr -h $fd $addr $sender $*



    My entry looks the same.


    >
    > also, try this:
    >
    > ndb/ipquery sys $sysname smtp # Note the $ here is not escaped
    >
    > which should print
    >
    > smtp=mgate.chello.at
    >


    Yeap, i got smtp=mgate.chello.at


    Frank

    --
    "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
    Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

  4. Re: [9fans] dns failure

    Ok, to get as much debug as you can,
    first try to send some mail.

    once that has failed, do:
    tail /sys/log/runq

    you should get somthing like this:

    May 3 10:46:10 steve/C.225661: execing '/mail/lib/remotemail' 'smtp' 'steve' 'net!$smtp' 'theirname@theirdomain.com'

    so, cut and pasteing from that you can run
    remotemail under rc-x like this:

    rc -x '/mail/lib/remotemail' 'smtp' 'steve' 'net!$smtp' 'theirname@theirdomain.com'

    which will give you some more debug, the last line of which is:

    exec /bin/upas/smtp -i -a -h mydomain.com 'net!$smtp' my-username-on-my-mail-relay theirname@theirdomain.com

    interrupt this, and you can now re-run smtp, adding a -d option
    to see the smtp debug:

    /bin/upas/smtp -d -i -a -h mydomain.com 'net!$smtp' my-username-on-my-mail-relay theirname@theirdomain.com

    expanding /net!$smtp
    sending /net/dns 'my.mail.relay.com mx'
    dns: dns: resource does not exist
    mxdial trying /net/net!mymailrelay.mydomain.com!smtp
    220 my.mail.relay.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Thu, 3 May 2007 14:10:40 +0100
    EHLO myhost.mydomain.com
    250-mymailrelay.mydomain.com Hello [192.168.253.1]
    250-TURN
    250-SIZE
    ...etc

    somwhere here you should be able see where your problem is occuring.

    -Steve

  5. Re: [9fans] dns failure

    ndb/dns has been changing in recent weeks. You might do a
    replica/pull, reboot and see if that changes your symptoms or cures
    your problem.


  6. Re: [9fans] dns failure

    Hi,
    I hope that I don't waste your time. I get only

    smtp: dns: dns failure (net!$smtp)

    as debug output. If I change $smtp to mgate.chello.at I get the same behavior.
    I've updated my system but I think that's not the problem.

    Frank

    --
    "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
    Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

  7. Re: [9fans] dns failure

    > smtp: dns: dns failure (net!$smtp)

    Ok, it looks like its just a plain DNS problem.

    Did you try doing a pull and a reboot as geoff suggested?
    this will ensure you are running the latest ndb/dns resolver

    if so, what happens if you try these, note the > is the prompt
    printed by dnsquery:

    term% ndb/dnsquery
    > mgate.chello.at mx
    > mgate.chello.at.mx


    here is what I get:

    felix% ndb/dnsquery
    > mgate.chello.at

    mgate.chello.at ip 213.46.255.2
    > mgate.chello.at mx

    !dns: resource does not exist

    if you have trouble with dns, then check which dns server
    you are using (cat /net/ndb), and maybe experiment with
    ndb/dnsdebug (check the manual for details).

    -Steve

+ Reply to Thread