[Mailman-Users] Mail delivery fails with "(-2, 'Name or service not known')"

2007-03-07 Thread noc
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 [EMAIL PROTECTED] 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:  
<[EMAIL PROTECTED]>
  Dec 22 21:18:32 2004 (1060) delivery to [EMAIL PROTECTED] 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 :
[EMAIL PROTECTED] ~]# 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 !

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Mail delivery fails with "(-2, 'Name or service not known')"

2007-03-08 Thread Mark Sapiro
[EMAIL PROTECTED] wrote:
>
>When I try to access to python shell with mailman user ( @#" su  
>mailman ") I've got a error :
>"This account is currently not available."


Try running these as any 'ordinary' user - not root.

Also try sending mail using the example in the post at
.

If the "x = smtplib.SMTP()" in this script succeeds, but there is a
failure after that, try adding

x.set_debuglevel(1)

immediately following

x = smtplib.SMTP()


-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp