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/linux@lists.unixtech.be > 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/linux@lists.unixtech.be IRC: chat.unixtech.be:6667 - #unixtech NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech