Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to speed up sendmail

Status
Not open for further replies.

mturnbo

Programmer
Apr 24, 2001
9
US
I am beginning to configure a new web server. Sendmail is installed. I have written a few scripts in perl and php to send mail from html forms. They work, however it takes a long time for the script to run due to the part where it uses sendmail to send the email. I decided to test it by writing a simple script that just send an email with one word in the body that I ran from the command line. It took 30 seconds to complete. Does anyone know why this is taking so long and how I can speed it up?
 
I've found that long delays are often caused by name resolution problems (DNS, WINS). Before I started checking for DNS problems though, I would type "mail" from the command prompt and send a test message that way. If it takes a long time as well, then start checking to make sure your DNS is configured correctly and sendmail isn't trying to resolve the sender's domain name and such. If it executes quickly though as I suspect, it is most likely a problem with your scripting language.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top