aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2015-05-01 09:14:08 -0700
committerMark Sapiro <mark@msapiro.net>2015-05-01 09:14:08 -0700
commit47c050236d3632f0dfaca75b2c96d5c880355185 (patch)
treece7e96271f9eb20027da02eecdc53fd22d1faee9 /Mailman
parent8f7fc30bde024165d742ecae082858d80f1012b8 (diff)
downloadmailman2-47c050236d3632f0dfaca75b2c96d5c880355185.tar.gz
mailman2-47c050236d3632f0dfaca75b2c96d5c880355185.tar.xz
mailman2-47c050236d3632f0dfaca75b2c96d5c880355185.zip
The vette log entry for DMARC policy hits now contains the list name.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 1cd1cdb7..e7eaa389 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1209,15 +1209,15 @@ def IsDMARCProhibited(mlist, email):
for entry in dmarcs:
if re.search(r'\bp=reject\b', entry, re.IGNORECASE):
syslog('vette',
- 'DMARC lookup for %s (%s) found p=reject in %s = %s',
- email, dmarc_domain, name, entry)
+ '%s: DMARC lookup for %s (%s) found p=reject in %s = %s',
+ mlist.real_name, email, dmarc_domain, name, entry)
return True
if (mlist.dmarc_quarantine_moderation_action and
re.search(r'\bp=quarantine\b', entry, re.IGNORECASE)):
syslog('vette',
- 'DMARC lookup for %s (%s) found p=quarantine in %s = %s',
- email, dmarc_domain, name, entry)
+ '%s: DMARC lookup for %s (%s) found p=quarantine in %s = %s',
+ mlist.real_name, email, dmarc_domain, name, entry)
return True
return False