Slow outgoing mail queue.

Paul Simpkin paul.simpkin at
Tue Feb 22 09:00:56 GMT 2011

Thank you all so much for the pointers.


Yes I can see Mailscanner is not the problem here. Mailscanner takes the
email, washes the mail then pop's it in the outgoing queue. 


Then Sendmail (for all domains) just sits there for well over 7mins
before trying to send the queue. Sometimes there can be upto 60+ emails


One thing I can see is that only 3 sendmail's are running, 2 of them are
stuck trying to deliver mail to domain with no DNS. IE dead mail etc.



Again thanks for all your help so far!




Paul Simpin


From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of Stephen
Sent: 21 February 2011 19:58
To: MailScanner discussion
Subject: Re: Slow outgoing mail queue.




Mail sitting in the outbound mail queue is not usually a MailScanner


When MailScanner finishes scanning, it passes the message back to
sendmail for delivery. Only if sendmail can't deliver the message
immediately does sendmail place the message in the outbound retry mail


You can see what's in the outbound deferred  mail queue by running:




That should show output similar to:


                        /var/spool/mqueue (1 request)

-----Q-ID----- --Size-- -----Q-Time-----

p1IF3cOE000800     5124 Fri Feb 18 10:03 MAILER-DAEMON

                 (Deferred: Connection timed out with

<Newsalert at>


There should be a line for each message that shows the reason why the
message delivery has been deferred.


Best regards,

Steve Swaney
steve at
The most accurate and cost effective anti-spam solutions available



On Feb 21, 2011, at 3:13 PM, Paul Simpkin wrote:



I really need some help with Mailscanner or sendmail not sure what one
is making my mail queue very slow. From the logs I can see that all the
normal scans are done then the mail just sits in the outgoing queue.


Here is where the log file just stops for well over 10mins. I have
changed the startup script for sendmail and added -q1m but still does
not help.


Feb 21 19:05:55 mx1 MailScanner[29289]: Spam Checks completed at 9620
bytes per second

Feb 21 19:05:55 mx1 MailScanner[29289]: Uninfected: Delivered 1 messages

Feb 21 19:05:55 mx1 MailScanner[29289]: Virus Processing completed at
612801 bytes per second

Feb 21 19:05:55 mx1 MailScanner[29289]: Deleted 1 messages from

Feb 21 19:05:55 mx1 MailScanner[29289]: Batch completed at 8773 bytes
per second (8616 / 0)

Feb 21 19:05:55 mx1 MailScanner[29289]: Batch (1 message) processed in
0.98 seconds

Feb 21 19:05:55 mx1 MailScanner[29289]: Logging message p1LJ5sAc029339
to SQL

Feb 21 19:05:55 mx1 MailScanner[29289]: "Always Looked Up Last" took
0.00 seconds





Here is a my version etc:


Linux #1 SMP Thu Sep 30
19:27:35 EDT 2010 i686 i686 i386 GNU/Linux

This is CentOS release 5.5 (Final)

This is Perl version 5.008008 (5.8.8)


This is MailScanner version 4.81.4



Hope someone can help.





Paul Simpkin



MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 


This message has been scanned for viruses and
dangerous content by TDG UK, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list