Page 1 of 1

mail() - SMTP - and server queue

Posted: Wed Mar 07, 2007 2:48 pm
by webstyler
Hi to all :)

I have made any test with high volume sent with mail() and with direct STMP connection

I monitoring under WHM of my server the QUEUE (under mail queue manager)

With the first (mail()) I see only 20% in the queue, other is sent immediately

With the SMTP I see :( 100% on the queue and I must send manually (with delivery now) and sent is really slowly

:(

Any help ?

thanks

Posted: Wed Mar 07, 2007 4:37 pm
by Chris Corbyn
If it's a linux server, mail is just spooling the emails to disk, they'e not actually sending in real-time.

SMTP on the other hand does get rid of it to another server, but you have to honour the protocol and speak SMTP commands to it over a network so yes, the script will take longer, but you also get rid of the mail faster.

I'm not sure I fully understand what you're asking though... why do you have to send it manually?

EDIT | The speed of SMTP is also attributed to the server you're sending it to. If the SMTP server is under strain, or has low bandwidth then it'll slow things down. Cycling around more servers helps keep the load down. You can round-robin around servers.

Posted: Wed Mar 07, 2007 5:00 pm
by webstyler
d11wtq wrote:If it's a linux server, mail is just spooling the emails to disk, they'e not actually sending in real-time.
yes, is a linux server
d11wtq wrote: SMTP on the other hand does get rid of it to another server, but you have to honour the protocol and speak SMTP commands to it over a network so yes, the script will take longer, but you also get rid of the mail faster.
uhm.. sorry but I haven't understand

what you mean when write "the script" ?

there is any smtp comand for "push" email from smtp to network ?
d11wtq wrote:I'm not sure I fully understand what you're asking though... why do you have to send it manually?
I go under WHM > mail queue manager
Here there is queue spool

Mail is automatically send really sloowly or not send for most time..

But, If (from here) I click "delivery now" mail is sent
d11wtq wrote: EDIT | The speed of SMTP is also attributed to the server you're sending it to. If the SMTP server is under strain, or has low bandwidth then it'll slow things down. Cycling around more servers helps keep the load down. You can round-robin around servers.
This testing is maked on a Dual Xeon 2.66 with 2 GB of ram
Server is on webfarm with 100Mbit burstable
In this server, at this time, there is ONLY this test running
MTA > exim
Number of minutes between mail server queue runs > 10 minutes

Mail send from testing script is really litte:
250 emails any 10 minutes

tx

Posted: Thu Mar 08, 2007 3:54 pm
by webstyler
I have try to make other test to number of emails x session (session start any 10 minutes)

from 200 to 600 emails any ten minutes

over 300 queue have more that 1500 emails in less than 3 hours :(

I have also try to run queue any 10 minutes.. nothing

any idea ?

Think that dual xeon with only 1 customer can make more better.. no ?

thanks