aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Gui/Privacy.py4
-rw-r--r--Mailman/Utils.py5
2 files changed, 7 insertions, 2 deletions
diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py
index 3e963b7a..90560bff 100644
--- a/Mailman/Gui/Privacy.py
+++ b/Mailman/Gui/Privacy.py
@@ -238,7 +238,7 @@ class Privacy(GUIBase):
('dmarc_moderation_action', mm_cfg.Radio,
(_('Accept'), _('Hold'), _('Reject'), _('Discard')), 0,
_("""Action to take when anyone posts to the
- list from a domain with a DMARC Reject Policy."""),
+ list from a domain with a DMARC Reject/Quarantine Policy."""),
_("""<ul><li><b>Hold</b> -- this holds the message for approval
by the list moderators.
@@ -257,7 +257,7 @@ class Privacy(GUIBase):
<a href="?VARHELP/privacy/sender/dmarc_moderation_action"
>rejection notice</a> to
be sent to anyone who posts to this list from a domain
- with DMARC Reject Policy.""")),
+ with DMARC Reject/Quarantine Policy.""")),
_('Non-member filters'),
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index ec9174c7..37ae940b 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1132,6 +1132,11 @@ def IsDmarcProhibited(email):
email, dmarc_domain, name, entry)
return True
+ if re.search(r'\bp=quarantine\b', entry, re.IGNORECASE):
+ syslog('info', 'DMARC lookup for %s (%s) found p=quarantine in %s = %s',
+ email, dmarc_domain, name, entry)
+ return True
+
return False