Herron has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370650 )

Change subject: Add system filter for list owner spam from numeric qq.com 
addresses
......................................................................

Add system filter for list owner spam from numeric qq.com addresses

Filter messages from qq.com to list owner addresses with only digits present
in the user part address.

Change-Id: I89d8136bd924e54df4d85ff022359446df9f87bb
---
M modules/profile/templates/exim/system_filter.conf.mailman.erb
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/50/370650/1

diff --git a/modules/profile/templates/exim/system_filter.conf.mailman.erb 
b/modules/profile/templates/exim/system_filter.conf.mailman.erb
index 22d6bfe..3086a40 100644
--- a/modules/profile/templates/exim/system_filter.conf.mailman.erb
+++ b/modules/profile/templates/exim/system_filter.conf.mailman.erb
@@ -27,3 +27,8 @@
 if $header_subject: matches "8。C(O|0)M.*天天" and $header_from: contains 
"@qq.com" then
         fail text "Message rejected ref2"
 endif
+
+# Filter spam observed from qq.com to list owner addresses with only digits in 
user part
+if $header_from: matches "^[0-9]+@qq.com" and $header_to: contains "owner" then
+        fail text "Message rejected ref3"
+endif

-- 
To view, visit https://gerrit.wikimedia.org/r/370650
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89d8136bd924e54df4d85ff022359446df9f87bb
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Herron <kher...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to