diff options
author | Mark Sapiro <mark@msapiro.net> | 2014-05-29 08:38:47 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2014-05-29 08:38:47 -0700 |
commit | 1bbdb3ac38c2ee6f3704694c49069d7d4e383ae3 (patch) | |
tree | 6f8100c87f3a8adc7f0734bc53194b2c3e1f136d /Mailman | |
parent | 162234d13d13817514fc47c7422191dfd8b73ec9 (diff) | |
download | mailman2-1bbdb3ac38c2ee6f3704694c49069d7d4e383ae3.tar.gz mailman2-1bbdb3ac38c2ee6f3704694c49069d7d4e383ae3.tar.xz mailman2-1bbdb3ac38c2ee6f3704694c49069d7d4e383ae3.zip |
If checking DNS for dmarc_moderation_action and DNS lookup is not
available, log it. (LP: #1324541)
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 8290bf14..1bbb9bb1 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -1070,7 +1070,11 @@ def suspiciousHTML(html): # or possibly quarantine. def IsDMARCProhibited(mlist, email): if not dns_resolver: - return False + # This is a problem; log it. + syslog('error', + 'DNS lookup for dmarc_moderation_action for list %s not available', + mlist.real_name) + return False email = email.lower() at_sign = email.find('@') |