I wrote a simple mail script, when executed it sends a mail to a specified address. It works fine except for the fact that it takes around 45secs to complete. I'm on a 10mbit LAN, and it shoudn't take that long at all. The mail server is on the same subnet as I am. Does anyone know of a solution to speed up the mail()ing process ? I've looked into maybe a DNS problem, but I don't see anything wrong. One thing I noticed, when the box is booting up through the INIT scripts, sendmail sits there for about a minute. I know the problem has to be with sendmail, just don't know what.

The Box:

Slackware Linux
mail() using sendmail as the MTA.

One more thing, in the php.ini file you can specify an smtp server, but why does it say windows only ?