SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

"Martin v. Löwis" martin at
Sun Jul 17 10:16:58 CEST 2005

John Reese wrote:
> Morning.  I've been running into an error message pertaining to SSL
> that I don't understand, and I was hoping someone had some insight.
> Gmail provides POP access over SSL on port 587, so I tried to use
> poplib.POP_SSL, with the following results:
> socket.sslerror: (1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol')
> Any suggestions or insight?

It appears that *doesn't* provide SSL on port 587.

martin at mira:~/doc$ telnet 587
Connected to
Escape character is '^]'.
220 ESMTP 13sm5173422wrl

This rather looks like an unencrypted SMTP connection to me. Indeed,
port 587 is the mail submission protocol.


More information about the Python-list mailing list