Nemo bis has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350429 )

Change subject: Make mailman reject messages with high X-Spam-Score by default
......................................................................

Make mailman reject 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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/29/350429/1

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: newchange
Gerrit-Change-Id: I27f18d521852cbae5ea2dd737937c8c6d100bd03
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Nemo bis <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to