mail() - SMTP - and server queue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

mail() - SMTP - and server queue

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

Post 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
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

Post 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
Post Reply