[Mailman-Users] dmarc_moderation_action isn't working

Mark Sapiro mark at msapiro.net
Thu May 29 16:04:35 CEST 2014

On 05/29/2014 03:03 AM, Joel Uckelman wrote:
> Do you still think that given what I found above?

Did you restart Mailman after installing the python-dns package?

Yes, I still think that. If you did restart Mailman and the package is
available, something should be logged unless the DNS lookup of DMARC
policy for the From: domain succeeds and doesn't find a p=reject (or

I have attached a patch to Mailman/Utils.py which is a fix for
<https://bugs.launchpad.net/mailman/+bug/1324541> which will log the
unavailability of DNS lookup.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
-------------- next part --------------
--- ../../2.1/Mailman/Utils.py	2014-05-02 20:26:19.166274000 -0700
+++ Utils.py	2014-05-29 06:48:14.213492535 -0700
@@ -1070,7 +1070,11 @@
 # 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)
+        return False
     email = email.lower()
     at_sign = email.find('@')

More information about the Mailman-Users mailing list