[Mailman-Users] DNS Rdatatype?

Larry Rosenman ler at lerctr.org
Tue Jun 30 04:51:13 CEST 2015


On 2015-06-29 21:47, Mark Sapiro wrote:
> 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?
Yes.
> 
> 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.

[root at gothamweb02 ~]# python
Python 2.4.3 (#1, Jan  9 2013, 06:47:03)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dns.resolver
>>> dns.rdatatype.TXT
16
>>> 
[root at gothamweb02 ~]#

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler at lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688



More information about the Mailman-Users mailing list