re smtp dns problems:

Hi,

Debugging smtp: check the exact way upas/smtp is being envoked.
Look at the end of /sys/mail/runq, here is an example from mine:

        felix Jan 12 19:33:36 steve/C.095795: execing '/mail/lib/remotemail' 
'smtp' 'steve' 'net!$smtp' '[email protected]'

Then you can try running the remotemail script with rc -x to see
what it is doing, in my example:

        rc -x '/mail/lib/remotemail' 'smtp' 'steve' 'net!$smtp' 
'[email protected]'
    ...
        exec /bin/upas/smtp -g 'net!$smtp' -h quintile.net 'net!$smtp' steve 
[email protected]

Finally you can exec smtp with the -d option (debug) to see the SMTP 
conversation,
and perhaps more importantly the DNS lookups (and failures) that occur.

----------------------

I used to put this in my /mail/lib/remotemail:

        exec /bin/upas/smtp -h $fd $addr $sender $*

But due to a weird bug in the DNS cache (that I couldn't find even after
several attempts) mail would fail, so I changed (at Russ's advice) to 

        exec /bin/upas/smtp -g $addr -h $fd $addr $sender $*

and email has worked fine since.

-Steve

Reply via email to