Re: speed of mail() on two servers
| From: | jabber@raditha.com | Date: | Wed, 27 Aug 2003 15:49:19 +0000 |
| Subject: | Re: speed of mail() on two servers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160926@lists.php.net to get a copy of this message | ||
having you tried ezmlm or to directly inject the message into the que?
Javier Tacon wrote:
I think that may be 'problem' from sendmail .. mail() function under linux only interacts with sendmail, it doesn't contact to the remote SMTP to leave the mail. Do you have the same sendmail version in two machines? You should compare both sendmail configuration and try to check the speed from a bash script for example. -----Mensaje original----- De: David T-G [mailto:davidtg-php@justpickone.org] Enviado el: miercoles, 27 de agosto de 2003 0:40 Para: PHP General list Asunto: [PHP] speed of mail() on two servers Hi, all -- I'm working up a [cli] script to send a personalized (ugh) email to some [often large] number of web site subscribers. Unfortunately, I'm getting lousy performance, running about 0.54 sec per email. My partner has a mail script implemented on another machine and he's running somewhere down around 0.10 sec per email, which is better but still not very good for sending to 60k users. The box (dual Xeon 2.2G with mirrored fast SCSI and 1G RAM) has plenty of horsepower, and it certainly shouldn't need more. It's running RH 7.3 (Valhalla) with 2.4.20 on ext3 and has qmail installed as its MTA. It seems to be the mail() call itself, because I can make a system call (system, exec, passthru) to just echo the current data and it rips through my list in nothin' flat. So how do I tune mail() to make it faster? Or do I need to give up and call qmail-inject directly? TIA & HAND :-D-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.