aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 2404c445..1aa49954 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1243,6 +1243,15 @@ def IsDMARCProhibited(mlist, email):
mlist.real_name, email, dmarc_domain, name, entry)
return True
+ if (mlist.dmarc_none_moderation_action and
+ mlist.dmarc_quarantine_moderation_action and
+ mlist.dmarc_moderation_action in (1, 2) and
+ re.search(r'\bp=none\b', entry, re.IGNORECASE)):
+ syslog('vette',
+ '%s: DMARC lookup for %s (%s) found p=none in %s = %s',
+ mlist.real_name, email, dmarc_domain, name, entry)
+ return True
+
return False