From 49edcdb8f54ce7f1448c25e29f71494733993880 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 4 Apr 2021 09:25:23 -0700 Subject: [PATCH] Add SpamAssassin Spamhaus Zen blacklist score file Improves from default the `score` assigned to Spamhaus Zen blacklisted emails by creating `miab_spamhaus_zen_scores.cf` file with higher `score` values. --- setup/spamassassin.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index 989bbff4..a8f4fbe5 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -117,6 +117,24 @@ describe SPF_FAIL SPF check failed score SPF_FAIL 5.0 EOF +# SpamAssassin Spamhaus Zen blacklist scores +# ------------------------------------------ +# MiaB installs spamassassin configured to check against Spamhaus Zen +# blacklists, but the default score is too low to guarantee blacklisted +# email as spam. The below score is intended to send all Spamhaus Zen blacklist +# email received to the spam folder. + +cat > /etc/spamassassin/miab_spamhaus_zen_scores.cf << EOF +score RCVD_IN_PBL 10.0 +score RCVD_IN_SBL 10.0 +score RCVD_IN_SBL_CSS 10.0 +score RCVD_IN_XBL 10.0 +score URIBL_CSS 10.0 +score URIBL_CSS_A 10.0 +score URIBL_SBL 10.0 +score URIBL_SBL_A 10.0 +EOF + # Bayesean learning # ----------------- #