[Mailman-Users] DNS Rdatatype?

Mark Sapiro mark at msapiro.net
Tue Jun 30 04:47:36 CEST 2015


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 <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list