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?