PDA

View Full Version : [ubuntu] Speed of sendmail


Starcraftmazter
December 20th, 2009, 11:48 AM
Hello

I do quite a bit of PHP development on my machine. One thing that always gets me is that sendmail takes a few minutes to send an email (ie. mail() from PHP).

All the servers I've had (centos, etc) do this instantly, but ever since I've used Ubuntu for several years now, the sendmail package always sends emails very very slowly.

Can anyone shed any light on why this is, and how to improve it's speed?

:confused::confused::confused:

a9k3d
December 22nd, 2009, 04:29 AM
I'm using postfix on many ubuntu servers which send emails from php and ruby. It's under 3 seconds from send to deliver. The mail relay is on internal network.

Have you checked the mail.log files to see how long it really is taking? Sometimes the delays are not the sending but the receiving end.

Starcraftmazter
December 22nd, 2009, 04:31 AM
Sorry I think I wasn't being clear enough at all.

When I say it takes minutes to send, I mean the php script hangs in execution for minutes before the email is finally sent by the script.