<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ewald,</blockquote><div><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> ------------------------------------------------------<br>>>>> ex= smtplib.SMTP('<a href="http://smtp.mail.yahoo.com">smtp.mail.yahoo.com</a> <<a href="http://smtp.mail.yahoo.com">http://smtp.mail.yahoo.com
</a>>')<br>> Traceback (most recent call last):<br>> File "<stdin>", line 1, in ?<br>> File "/usr/lib/python2.4/smtplib.py", line 241, in __init__<br>> (code, msg) = self.connect
(host, port)<br>> File "/usr/lib/python2.4/smtplib.py", line 289, in connect<br>> for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):<br>> socket.gaierror: (-2, 'Name or service not known')
<br>><br>> ------------------------------------------------<br></blockquote><div>I am sorry , that's a mistake on my part. This output corresponds to a typo input data. The error you saw previously was the original one (the one with error on line 255...). I corrected the typo while posting it ( ..I thought the error was same)
<br> </div><br>------------------------------------------------------------------<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>the call should be
socket.getaddrinfo( "<a href="http://smtp.mail.yahoo.com">smtp.mail.yahoo.com</a>", 25, 0, >socket.SOCK_STREAM ); <br></blockquote><br><div>>>><span style="font-weight: bold;">socket.getaddrinfo('<a href="http://smtp.mail.yahoo.com">
smtp.mail.yahoo.com</a>',25,0,socket.SOCK_STREAM)</span><br style="font-weight: bold;"><span style="font-weight: bold;">[(2, 1, 6, '', ('<a href="http://216.136.173.18">216.136.173.18</a>', 25))]</span><br><br>--------------------------------------------------------------
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">How do you resolve your hostnames ( /etc/nsswitch.conf gives the order of hostname resolution )
</blockquote><div><br>My nssswitch.conf <br></div>----------------------------------<br><div>passwd: compat<br>group: compat<br><br>hosts: files dns<br>networks: files dns<br><br>services: files<br>protocols: files
<br>rpc: files<br>ethers: files<br>netmasks: files<br>netgroup: files<br>publickey: files<br><br>bootparams: files<br>automount: files nis<br>aliases: files<br><br> ---------------------------------------------------------------------------------------------
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>This should resolve your own local hostname!<br>>The socket.gethostbyname
() is a call into a shared object of Python and this >would use ( So think I ) the standard-Libraries for resolution.</blockquote><div><br>You totally lost me here :) <br></div>-----------------------------------------------------------------------------
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>Is "linux" a valid hostname?<br>>Does "ping linux" succeed.</blockquote>
<div><br>I suppose not.<br><br>linux:/srv/ # <span style="font-weight: bold;">ping linux</span><br>ping: <span style="font-weight: bold;">unknown host linux</span><br>--------------------------------------------------------------------------------------
<br><br></div><br></div>-- <br>Intercodes<br>