imaplib unexpected error

Laszlo Nagy gandalf at
Mon Nov 12 22:46:39 CET 2007

KeefTM wrote:
> Hello, I am getting an odd error when trying to establish an IMAP
> connection:
> File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
>", line 904, in _get_response
>     raise self.abort("unexpected response: '%s'" % resp)
> imaplib.abort: unexpected response: '220 ESMTP
> CommuniGate Pro 5.0.9 is glad to see you!'
> I thought 220 was the correct response, so I don't understand why I am
> getting the error. Thanks!
You are connecting to an SMTP server. :-) Maybe it is using the IMAP 
port? More likely you tried to connect to port 25 which is - usually - 
reserved for SMTP.



More information about the Python-list mailing list