Stefan Jakobs wrote:
Hello list,
I'm using amavisd-new with spamassassin and for some tests I have to disable
all network tests in spamassassin except for sorbs, njabl, uribl and maybe
some other blackhole lists.
I guess I can comment out the corresponding header lines in the files
20_dnsbl_tests.cf and 25_uribl.cf.
Don't do that. Your changes will get clobbered whenever you run
sa-update or upgrade SA versions..
And also deactivate the plugins for razor,
pyzor and so on. But it this enough, or is there a easier way to disable most
of the network tests?
Set their score to 0 in your local.cf. Note for RBL's you'll need to set
a 0 score for the normally un-scored "root" rule for that RBL, which is
the one using check_rbl, not check_rbl_sub.
For example, to disable all the spamhaus tests:
score__RCVD_IN_ZEN 0
score RCVD_IN_SBL 0
score RCVD_IN_XBL 0
score RCVD_IN_PBL 0
The only one you *really* need is the first one, as that one disables
the DNS querry. However, disabling the sub-tests will save you a little
CPU and prevent SA from constantly checking an empty result to see if
different IPs match it.