Bill,

> Periodically (about every three weeks or so) we seem to experience a large
> mail flood that simply congests three Dell 1850s which under normal
> conditions run about 50% utilization. with 90% idle time available and as a
> result, the active queue for postfix backlog into the tens of thousands
> range.  The incoming is clean and deferred are low.
>
> After looking over the servers long and hard, multiple times with multiple
> set of eyes, there are no local system problems (disk, memory, IOWAIT, CPU,
> etc).  Looking over the timing stats in the mail logs, the only think that
> really sticks out when the servers are having troubles is the "SA Check"
> timing stats which are in the thousands and up.  Additionally, (I know,
> this is not the SA listserver but many use it along Amavis) using
> amavis-nanny we see excessive times, so we are not sure if the problem is
> Amavis or SA.

Setting:
  $nanny_details_level = 2;
gives more detail in nanny's output.
Run 'amavisd-nanny -h' to see a legend of characters used in the display.

> year round we see the servers take an average of 2.5-3.5 seconds per e-mail
> and we have had a steady increase of mail and are now processing over 1.6M
> a day, this does not include the spammers what we have simply block using
> IPTables. These times are presuming no DNS issues, unless there are DNS
> problems which tends to extend the time
>
> The config we use is pretty much the same as it was a few years ago
> (postfix/clamav/amavis/SA/lwres locally on RH4/x86) on three servers,
> weighted MX records, etc.
>
> Can someone possibly explain why amavis-nany would report such long delays
> and why the SA checks would take so long?  We are not sure if this is
> simply a symptom of another issues, or if this is all and all the problems
> itself such as simply volume.  peaking of, if someone can offer some
> general stats on what they are able to handle on what hardware, at would at
> least allow me to know if I'm in the ballpark of what the boxes could be
> doing...

My first bet would be some unresponsive RBL DNS server.
If your rbl_timeout is at a default 15 seconds, this offers
a good explanation. Cut it down to 8 or 5 seconds.

Consider also applying my patch at:
  http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5589
(applies to SA 3.2.3 or 3.2.2). If you do, and you suspect slow
DNS responses, it is helpful to run spamassassin from a command line
on some representative sample message, and looking at a 'timing:'
debug lines:

# su vscan -c 'spamassassin -t -D <test.msg'
...

[44030] dbg: async: timing: 0.594 . 
DNSBL:dob.sibl.support-intelligence.net:yahoo.co.in
[44030] dbg: async: timing: 0.598 . DNSBL:multi.surbl.org.:yahoo.co.in
[44030] dbg: async: timing: 0.600 . DNSBL:multi.uribl.com.:yahoo.co.in
[44030] dbg: async: timing: 0.603 . 
dns:TXT:206.31.210.41.sa-other.bondedsender.org.
[44030] dbg: async: timing: 1.251 . DNSBL:sbl.spamhaus.org.:16.255.142.68
[44030] dbg: async: timing: 1.253 . DNSBL:sbl.spamhaus.org.:63.196.142.68
[44030] dbg: async: timing: 1.254 . DNSBL:sbl.spamhaus.org.:63.71.218.66
[44030] dbg: async: timing: 1.254 . DNSBL:cn-kr.blackholes.us:63.196.142.68
[44030] dbg: async: timing: 1.255 . DNSBL:cn-kr.blackholes.us:63.71.218.66
[44030] dbg: async: timing: 1.257 . DNSBL:sbl.spamhaus.org.:17.116.109.216
[44030] dbg: async: timing: 1.258 . DNSBL:cn-kr.blackholes.us:17.116.109.216
[44030] dbg: async: timing: 1.258 . DNSBL:sbl.spamhaus.org.:104.4.12.217
[44030] dbg: async: timing: 1.260 . DNSBL:cn-kr.blackholes.us:104.4.12.217
[44030] dbg: async: timing: 2.165 . DNSBL:cn-kr.blackholes.us:16.255.142.68
[44030] dbg: async: timing: 2.821 . dns:TXT:221.16.104.203.list.dsbl.org.
[44030] dbg: async: timing: 3.751 X 
dns:A:yahoo.co.in.blackhole.securitysage.com.
                                  ^the ones marked with an 'X' were aborted on 
timeout
[44030] dbg: dns: timing: 0.903 s sleeping in harvest_dnsbl_queries


  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to