PHP mail really slow on Mac OS X

view full story

http://serverfault.com – I use PHP to send an email like this: mail($email_recipient,$mail_subject,$mail_body,"From: $email_sender\r\nReply-to: $email_sender\r\n"); The $mail_body is perhaps 1kb. $email_recipient = $email_sender = "[email protected]". This takes 20 seconds to send on a mac os x server. Here is some data from phpinfo: sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i SMTP localhost localhost smtp_port 25 25 Here is a snippet from my 'man sendmail' showing that it is really postfix underneath: sendmail - Postfix to Sendmail co (HowTos)