On 3/11/2011 10:05 AM, Hamad Ali wrote:
hi folks --- everything seems working like chicken. I'm loving SA so far.

However, I would like to disable all network tests (each mail takes ~10
seconds!). Except that I dunno how to do it the neat way.

Will the tests be disabled if their score is 0? I know that would lead
into disabling the effect of a rule on the decision making of SA (i.e.
Spam/Ham marking), but would SA exclude them from running too?

I need to disable all BLs, DNS queries, and anything that uses the
internet. Kindly advise.

Thank you guys -- May OOP Raise and Shine!
H

Please consider that spamassassin is CRIPPLED without the network tests. If it is taking 10 seconds per message then you likely have some kind of serious misconfiguration. The first likely culprit is your DNS server is not good. Several times in past years I've had to stop using my ISP's (or data center's!) official DNS servers because they were simply not capable of handling the load of spamassassin. In such cases I run pdns-recursor on each Spamassassin server directly, and set /etc/resolv.conf to use 127.0.0.1 as the DNS resolver.

After you have switched to a known good DNS server, do the following to diagnose the network tests.

1) Save a single spam message as a flat file, with headers and body intact. If your folders are Maildir format then a single file in your directory tree is suitable for this purpose.

2) cat FILE | spamassassin -D

3) Copy the entire output and paste into a text editor.

4) Look at the lines near the bottom for "async: timing:" Those are followed by a number of seconds that an individual DNS request took to respond. All of these numbers are typically between 0 and 3 seconds on my server. If you have much larger numbers or some queries are timing out entirely, then you may have further issues with your DNS server, or you may have been blocked from queries because you have exceeded free usage limits.

http://www.spamtips.org/2011/01/usage-limits-of-spamassassin-network.html
Please see my article here about the free usage limits of the various spamassassin network tests.

http://www.spamtips.org/p/ultimate-setup-guide.html
Please read this page for all known safe and effective configuration tweaks to spamassassin.

Warren Togami
war...@togami.com

Reply via email to