[SOLVED] Adjust SA score for good domains

KatyComputer

Well-Known Member
Sep 26, 2019
196
16
58
62
St Louis
katycomputer.com
If I allow list a domain, SpamAssassin will still snare the message, I end up adding a rule to /etc/mail/spamassassin/custom.cf:
Code:
header   LOCAL__H_cbservices ALL  =~ /cbservices\.org/i
score    LOCAL__H_cbservices -15.0

header   LOCAL__H_myschoolworx ALL  =~ /myschoolworx\.com/i
score    LOCAL__H_myschoolworx -15.0

I suspect there is a better way to get similar results. What is everyone else doing?

This approach is effective, but takes too much time and is error prone. I would prefer a text file containing a list of domains that could be easily edited and maintained.
 
Last edited:
If you want to skip putting a mail in quarantine/blocking it based on its spamlevel - simply add a rule which allows those domains with higher priority than the ones who put it in quarantine/block it

I hope this helps!
 
I dug into my SpamAssassin tool chest and added this file: /etc/mail/spamassassin/okdomains.cf
Code:
def_whitelist_auth *@stlouisco.com
def_whitelist_auth *@stripe.com
def_whitelist_auth *@stylewe.com *@*.stylewe.com
def_whitelist_auth *@suphome.com
whitelist_auth *@*.aexp.com
whitelist_auth *@*.americanexpress.com
whitelist_auth *@*.ml.com

After "pmgconfig sync --restart 1 ; spamassassin --lint", the def_whitlist_auth domains get a little boost, whitelist_auth get a big boost.