Hello

J'ai deja verifie le /etc/resolv.conf hier apres lecture d'un autre post 
du m�me style mais les modifications effectu�es alors ne changaient rien. 
Par compte sur ton url, j'ai trouv� 
la fonction utilis�e dans la lib, ce qui m'a permis de faire un mode 
"debug" et j'ai le m�me message d'erreur:

artemis:/var/log/mailman # python
Python 2.3.4 (#1, Feb  7 2005, 15:50:45)
[GCC 3.3.4 (pre 3.3.5 20040809)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> connection = smtplib.SMTP()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/smtplib.py", line 254, in __init__
    addr = socket.gethostbyname(socket.gethostname())
socket.gaierror: (-2, 'Name or service not known')
>>>
BANG! Si mon resolv.conf est bon, peut-�tre est-ce le /etc/hosts qui est 
lu avant?

Je modifie le /etc/hosts pour y ajouter le hostname avec FQDN et 
l�... bingo! Plus d'erreur dans l'interpr�teur Python. et tout � 
coup, Maiman envoie les mails. Alors que postfix utilise certainement 
une autre impl�mentation de gethostbyname() et a tujours bien march�. Je 
commencais � me poser des questions exisentielles l��. Merci!!!

On Wed, 25 May 2005, Xavier Renard wrote:

> Hi,
> 
> 
> Vincent Jamart wrote:
> 
> >Hello
> >
> >
> >Dans smtp-failure:
> >May 25 09:52:11 2005 (25008) Low level smtp error: (-2, 'Name or service 
> >not known'), msgid: <[EMAIL PROTECTED]>
> >May 25 09:52:11 2005 (25008) delivery to [EMAIL PROTECTED] failed with 
> >code -1: (-2, 'Name or service not known')
> >May 25 09:52:11 2005 (25008) Low level smtp error: (-2, 'Name or service 
> >not known'), msgid: <[EMAIL PROTECTED]>
> >May 25 09:52:11 2005 (25008) delivery to [EMAIL PROTECTED] 
> >failed with code -1: (-2, 'Name or service not known')
> >May 25 09:52:45 2005 (25008) Low level smtp error: (-2, 'Name or service 
> >not known'), msgid: <[EMAIL PROTECTED]>
> >May 25 09:52:45 2005 (25008) delivery to [EMAIL PROTECTED] failed with 
> >code -1: (-2, 'Name or service not known')
> >May 25 09:52:45 2005 (25008) delivery to [EMAIL PROTECTED] failed with code 
> >-1: (-2, 'Name or service not known')
> >May 25 09:52:45 2005 (25008) Low level smtp error: (-2, 'Name or service 
> >not known'), msgid: <[EMAIL PROTECTED]>
> >May 25 09:52:45 2005 (25008) delivery to [EMAIL PROTECTED] failed with code 
> >-1: (-2, 'Name or service not known')
> >
> >  
> >
> :-(
> 
> En fait, on dirait que c'est plus li� avec mailman.  Je viens de faire
> une recherche surr google et je suis tomb� sur cette entr�e.
> http://www.python.org/cgi-bin/faqw-mm.py?req=edit&file=faq06.014.htp
> 
> J'essayerai d'abord en modifiant|v�rifiant  /etc/hosts
> Note que je ne connaissais pas le smtpDirect mais j'avais plutot suivi 
> la premi�re section du POSTFIX.README
> de mailman.
> 
> Xavier
> 
> 
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/[email protected]
> IRC: chat.unixtech.be:6667 - #unixtech
> NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech
> 

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[email protected]
IRC: chat.unixtech.be:6667 - #unixtech
NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech

Répondre à