How do I setup SpamAssassin to query only bl.spamcop.net, and set a very high score for that? I'm using spamd with vpopmail support.
Go to /usr/share/spamassassin. look through 20_dnsbl_tests.cf and look at all the rules. For each RBL rule name create a line setting the score to 0, with the exception of the spamcop one, set that to a high score. The rules with a score of 0 will not cause DNS queries at all, so you do save CPU time this way.
Add these to /etc/mail/spamassassin/local.cf and restart spamd.
Here's a quick starter:
score RCVD_IN_BL_SPAMCOP_NET 10.0
#disable the rest: score RCVD_IN_NJABL 0 score RCVD_IN_NJABL_RELAY 0 score RCVD_IN_NJABL_DIALUP 0 score RCVD_IN_NJABL_SPAM 0 score RCVD_IN_NJABL_MULTI 0 score RCVD_IN_NJABL_CGI 0 score RCVD_IN_NJABL_PROXY 0 score RCVD_IN_SORBS 0 ...
(if you're clever, you can grep the 20_dnsbl_tests.cf file for "tflags" copy-paste these lines. Then do a search/replace on "tflags" with "score" and a second search/replace for "net" with "0")
An alternative would be to copy the entire RCVD_IN_BL_SPAMCOP_NET rule to your local.cf and delete 20_dnsbl_tests.cf, however if you upgrade a new 20_dnsbl_tests.cf would appear.
In the second scenario the additions to local.cf would look like this:
header RCVD_IN_BL_SPAMCOP_NET eval:check_rbl_txt('spamcop', 'bl.spamcop.net.')
describe RCVD_IN_BL_SPAMCOP_NET Received via a relay in bl.spamcop.net
tflags RCVD_IN_BL_SPAMCOP_NET net
score RCVD_IN_BL_SPAMCOP_NET 10.0
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk