From 19a47fc5d42c219af0ca5bcd9fd06dec6b445bbc Mon Sep 17 00:00:00 2001 From: myfirstnameispaul Date: Sat, 10 Apr 2021 09:24:26 -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..8828fd8e 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 # ----------------- #