On 06/29/2015 03:16 PM, Larry Rosenman wrote: > I'm all of a sudden getting: > Jun 29 18:08:20 2015 (8150) SHUNTING: > 1435615060.9881611+e8abd6ef95261ff0597e9e286d119a4a74b80ef2 ... > File "/usr/lib/mailman/Mailman/Handlers/SpamDetect.py", line 104, in > process > if Utils.IsDMARCProhibited(mlist, addr): > File "/usr/lib/mailman/Mailman/Utils.py", line 1156, in IsDMARCProhibited > txt_recs = resolver.query(dmarc_domain, dns.rdatatype.TXT) > AttributeError: 'module' object has no attribute 'rdatatype' > > on a reinstall after a CentOS Upgrade. > > I've installed the latest dnspython (1.12.0), and not sure where else to > look.
Did you restart Mailman after the dnspython install? What if you invoke the Python that Mailman uses and do >>> import dns.resolver >>> dns.rdatatype.TXT 16 >>> Note that if you just import dns you will get the AttributeError upon reference to dns.rdatatype.TXT, but it should work after importing dns.resolver which Utils.py does. -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
