Herron has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/350429 )
Change subject: Make mailman filter messages with high X-Spam-Score by default ...................................................................... Make mailman filter messages with high X-Spam-Score by default Cf. current 2.1 defaults and old discussion: https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/Defaults.py.in#L1269 https://mail.python.org/pipermail/mailman-users/2003-March/027255.html The only example of legit message I received with score 6 or higher, out of a sample of thousands: https://phabricator.wikimedia.org/P5335 Bug: T161082 Change-Id: I27f18d521852cbae5ea2dd737937c8c6d100bd03 --- M modules/mailman/files/mm_cfg.py 1 file changed, 7 insertions(+), 0 deletions(-) Approvals: Herron: Looks good to me, approved John Vandenberg: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/modules/mailman/files/mm_cfg.py b/modules/mailman/files/mm_cfg.py index bb3b24a..abf1f08 100644 --- a/modules/mailman/files/mm_cfg.py +++ b/modules/mailman/files/mm_cfg.py @@ -80,6 +80,13 @@ # MTA=None # Misnomer, suppresses alias output on newlist MTA = None +# If SpamAssassin has run before the message is received by mailman, reject +# at least the most egregious spam identified. Further tailoring per list: +# https://wikitech.wikimedia.org/wiki/Mailman#Spam_scores +DEFAULT_BOUNCE_MATCHING_HEADERS = """ +X-Spam-Score:[^+]*[+]{6,} +""" + # Uncomment if you use Postfix virtual domains, but be sure to # read /usr/share/doc/mailman/README.POSTFIX first. # MTA='Postfix' -- To view, visit https://gerrit.wikimedia.org/r/350429 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I27f18d521852cbae5ea2dd737937c8c6d100bd03 Gerrit-PatchSet: 4 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Nemo bis <[email protected]> Gerrit-Reviewer: Faidon Liambotis <[email protected]> Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]> Gerrit-Reviewer: Herron <[email protected]> Gerrit-Reviewer: Jgreen <[email protected]> Gerrit-Reviewer: John Vandenberg <[email protected]> Gerrit-Reviewer: Nemo bis <[email protected]> Gerrit-Reviewer: Volans <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
