[Mailman-Users] DNS Rdatatype?

Larry Rosenman ler at lerctr.org
Tue Jun 30 05:58:11 CEST 2015


On 2015-06-29 22:44, Mark Sapiro wrote:
> On 06/29/2015 08:29 PM, Larry Rosenman wrote:
> 
>> root at gothamweb02 ~]# head /usr/lib/mailman/bin/mailmanctl
>> #! /usr/bin/python
> ...
>> 
>> [root at gothamweb02 ~]# sudo -u mailman 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 ~]#
> 
> 
> I'm stumped. You could try
> 
> sudo -u mailman /usr/bin/python
> ...
> 
> just to be sure you've covered everything, but it probably won't be
> different. If you haven't restarted Mailman recently, you could try 
> that.
> 
> If nothing else helps, you could always add a line to Utils.py so it 
> says
> 
> try:
>     import dns.resolver
>     import dns.rdatatype
>     from dns.exception import DNSException
>     dns_resolver = True
> except ImportError:
>     dns_resolver = False
> 
> and restart Mailman, but that shouldn't be necessary. Basically, we're
> doing the exact thing that Mailman does as the mailman user and it
> works, but not when Mailman does it. I can't explain that.

I've made that change and will monitor.....

Thanks for the help (I'm stumped too).

-- 
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