Name server timeout on relay

This is a discussion on Name server timeout on relay within the SendMail forums in Other Technologies category; I am having a problem with my Sendmail server that is used to relay email for my web application. When the application opens an SMTP connection and begins to relay an email to certain email addresses, Sendmail tries to do a DNS lookup on the domain being relayed to. The lookup times out but not before my poor web application crashes from its own timeout. So I have two questions: Why is Sendmail doing a DNS lookup on an email address when it is RECEIVING the email to be relayed? It seems like it wouldn't do a lookup until it ...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 12:02 PM
tomrossi7
Guest
 
Default Name server timeout on relay

I am having a problem with my Sendmail server that is used to relay
email for my web application. When the application opens an SMTP
connection and begins to relay an email to certain email addresses,
Sendmail tries to do a DNS lookup on the domain being relayed to. The
lookup times out but not before my poor web application crashes from
its own timeout. So I have two questions:

Why is Sendmail doing a DNS lookup on an email address when it is
RECEIVING the email to be relayed? It seems like it wouldn't do a
lookup until it was time to deliver the email.

How can I stop the DNS lookup when accepting an email to be relayed?
Ideally, it would just accept the email and THEN do the DNS lookup on
the domain to be delivered to.

Please note that my Sendmail server is actually responsible for
delivering the email from the web app, so I can't just disable DNS and
have it forward all the email to some other relay server.

Thanks!
Tom

p.s. When running the same configuration on OSX Leopard running
Sendmail, the Sendmail server apparently operates perfectly without
timing out on the lookup.


Modified sample log:
*snip*
Aug 26 10:53:25 tick sendmail[29984]: m7QEq4CR029984: --- 451
bad_domain.com: Name server timeout
Aug 26 10:53:25 tick sendmail[29984]: m7QEq4CR029984: --- 050
<user@bad_domain.com>... Transient parse error -- message queued for
future delivery
Aug 26 10:53:25 tick sendmail[29984]: m7QEq4CR029984: --- 451
bad_domain.com: Name server timeout
Aug 26 10:53:25 tick sendmail[29984]: m7QEq4CR029984: --- 451
bad_domain.com: Name server timeout
Aug 26 10:53:25 tick sendmail[29984]: m7QEq4CR029984: --- 250 2.1.0
<user@bad_domain.com>... Sender ok
*snip*
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:11 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.