[Mailman-Users] Mail delivery fails with "(-2, 'Name or service not known')"
noc at windowslinux.net
noc at windowslinux.net
Wed Mar 7 15:54:06 CET 2007
Hi,
I'm in trouble. I've read the FAQ and everything about it on mailman site.
My problem is described in the FAQ (6.14) :
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.014.htp
I see these log entries in smtp-failure:
Dec 22 21:03:29 2004 (1060) delivery to igueths at lava-net.com failed
with code -1: (-2, 'Name or service not known')
Dec 22 21:18:32 2004 (1060) Low level smtp error: (-2, 'Name or
service not known'), msgid:
<mailman.0.1103765581.1052.mailman at lava-net.com>
Dec 22 21:18:32 2004 (1060) delivery to igueths at lava-net.com failed
with code -1: (-2, 'Name or service not known').
This python script :
>>> import smtplib
>>> connection = smtplib.SMTP()
>>>
didn't return any error to me... So I've look in my resolv.conf file.
My resolv.conf look like this :
search domainname.com
nameserver 193.24.123.123
but my computer name is "ns50.domainname.com". Should I have
"domainname.com" in resolv.conf or "ns50.domainanme.com" ?
I've tried that in python shell :
>>> import socket
>>> x = socket.gethostname()
>>> print x
ns50.domainname.com
>>> y = socket.gethostbyname(x)
>>> print y
127.0.0.1
So i've aded "nameserver 127.0.0.1" to my resolv.conf . I've rebooted
this computer and restarted mailman daemon.
But the problem is always here ...
When I try to access to python shell with mailman user ( @#" su
mailman ") I've got a error :
"This account is currently not available."
So I can't test this python shell script with mailman user ...
I've look my /etc/hosts, I think it's world readable :
[root at ns50 ~]# ls -lah /etc/hosts
-rw-r--r-- 1 root root 135 Feb 2 16:21 /etc/hosts
What should I do ?
Any tips ?
I have this problem since two week from now ... and I can't see how to
solve that :(
Thanks you if you have a tips !
More information about the Mailman-Users
mailing list