We have a mail queue application we wrote for our clients to send out their newsletters and whatnot. Everything has been going fine, but now we've discovered a problem with php's mail() function. I'm sure this has something to do with sendmail not giving up on bad domains, but anyway, here's the deal.
We have one email that I discovered after digging real deep which goes something like "info@somesite.com.au". I don't think we've found this problem before, but between yesterday and today, this .com.au address's name server is not responding. You'd think sendmail would give up after a few seconds but instead it hangs forever and ever (or at least over 13 hours which is when I killed it). This in turn hangs the mail function and hangs the php application and then crontab comes around again and tries to do the same thing again and we end up with about 30 people who received the email 20 times.
Is there some way to tell sendmail to give up on dns after a few seconds rather than a few years? Thanks!
Steve Kiehl
Web Page Designer - Nanovox Productions
Unwords Dictionary of Made-Up Words
We have one email that I discovered after digging real deep which goes something like "info@somesite.com.au". I don't think we've found this problem before, but between yesterday and today, this .com.au address's name server is not responding. You'd think sendmail would give up after a few seconds but instead it hangs forever and ever (or at least over 13 hours which is when I killed it). This in turn hangs the mail function and hangs the php application and then crontab comes around again and tries to do the same thing again and we end up with about 30 people who received the email 20 times.
Is there some way to tell sendmail to give up on dns after a few seconds rather than a few years? Thanks!
Steve Kiehl
Web Page Designer - Nanovox Productions
Unwords Dictionary of Made-Up Words