smtplib (111, 'Connection refused')

Donn Cave donn at u.washington.edu
Fri Sep 17 22:05:16 CEST 2004


In article <mailman.3468.1095451280.5135.python-list at python.org>,
 Josh Close <narshe at gmail.com> wrote:

> Does smtplib even use a smtp server? I looked at the source and it
> looks like it just connects via a socket and sends like that.

That's what SMTP is, the protocol to be used on that socket.
Your program is an SMTP client.  Where is the SMTP server?

   Donn Cave, donn at u.washington.edu

> On Fri, 17 Sep 2004 21:52:23 +0200, Martin v. Löwis <martin at v.loewis.de> 
> wrote:
> > Josh Close wrote:
> > > I'm using the smtplib module and I keep getting this error: (111,
> > > 'Connection refused') What could be causing this?
> > 
> > This means there is no SMTP server running on the remote system.
> > However, there *is* a TCP implementation (typically the operating
> > system) on the other end that tells you port 25 is not being
> > listened to.
> > 
> > Regards,
> > Martin



More information about the Python-list mailing list