[SOLVED] Adjust SA score for good domains

KatyComputer

Well-Known Member
Sep 26, 2019
193
16
58
61
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!