smtplib / solaris (newbie problem?)

"Martin v. Löwis" martin at
Sun Mar 13 22:54:08 CET 2005

chuck at wrote:
> The error message 'Connection refused' got me thinking that the SMTP
> server wouldn't allow this or required some authentication, or etc.

In case this isn't clear yet: the "connection refused" error happens
in TCP sockets if the remote machine is turned on, but offers no service
at the requested port. To see that in action, try connecting to any
unused port, e.g.

martin at mira:~$ telnet localhost 12354
telnet: Unable to connect to remote host: Connection refused

The error message that you get when you *do* connect, but then the
application rejects its service because of missing credentials or
some such should be different.


More information about the Python-list mailing list