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@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@gothamweb02 ~]#
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: [email protected]
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
------------------------------------------------------
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