Mailscanner scanning slowly

Daníel Kristinn Gunnarsson danielg at vodafone.is
Wed Mar 4 13:39:50 GMT 2009


Alright, spamassassin -L takes 1 sec or less, while running it regularly takes from 5-8 secs. I'm going to cut down on some RBL's and see where that gets me. As for my current configuration I've changed the delivery method to queue and changed the max messages per batch from 30 to 10 and running 10 child processes. So far the mail is takes on average 40-60 secs to be delivered.

I'll let you know what changes I'll do to spamassassin's configuration.



 
Daniel Kristinn Gunnarsson
Tæknimaður / Technician
Tækniborð / Technical Support
danielg at vodafone.is
+354 599-9500 - 3 

Vodafone
Skútuvogi 2
104 Reykjavík
www.vodafone.is

FYRIRVARI / DISCLAIMER
 

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Daníel Kristinn Gunnarsson
Sent: 3. mars 2009 22:06
To: MailScanner discussion; MailScanner discussion
Subject: RE: Mailscanner scanning slowly

Thanks for the pointers Jason, I'll get right on it in the morning !

Best regards,
Daniel


-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info on behalf of Jason Voorhees
Sent: Tue 3.3.2009 18:43
To: MailScanner discussion
Subject: Re: Mailscanner scanning slowly
 
Hi:

On Tue, Mar 3, 2009 at 10:03 AM, Daníel Kristinn Gunnarsson
<danielg at vodafone.is> wrote:
> Hi there !
>
> Lately I've been running into some trouble with MailScanner + spamassassin. Let me explain my current setup.
>
> I have a high-load mailserver (100k+ emails per day) that transfers all emails to 2 dedicated servers running Mailscanner + spamassassin for scanning. Both machines have the exact same setup:
>
> SLES 9.3
> 4gb RAM
> 2x 64-bit Dual Core AMD Opteron running at 2ghz
> MailScanner 4.71.10
> SpamAssassin 3.2.5
> Perl 5.8.3
> Postfix 2.2.6
>
> Both servers process almost equal amount of mail or about 50k each. The problem I'm having is that while server 2 is processing 10 mail scans in about ~60 secs, server 1 takes 300 secs to process them. Max unscanned and max unsafe messages per scan is set to 10 messages, no RBL checks set in MailScanner.conf, 10 children running and Delivery method is running in Batch, changing it to queue did nothing for me. I've tried lowering max children and messages per scanning batch but still it takes from 5 secs to 1 minute to scan a single message on server 1. CPU load goes from 0.4 to 0.8 on both servers. Any ideas, thoughts, tips and tricks are appreciated.
>

I suspect that is SpamAssassin who is working slowly. Have you tried
to disable Spam Checks and then compare how much time takes
MailScanner to scan messages? You could use a rules file to disable
spam checks only for a couple of test sender e-mail addresses.

You can confirm how much time is SpamAssassin spending on scanning
messages doing some local scans manually:

$ time spamassassin -L < /path-to/test-spam-message

Then run the same test again without -L flag and compare.

What special SpamAssassin settings do you have? What plugins are you
using? Could you try disabling some of them.

Share with us some of your tests and results
>
>
> Daniel Kristinn Gunnarsson
> Tæknimaður / Technician
> Tækniborð / Technical Support
> danielg at vodafone.is
> +354 599-9500 - 3
>
> Vodafone
> Skútuvogi 2
> 104 Reykjavík
> www.vodafone.is
>
> FYRIRVARI / DISCLAIMER
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 

-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list