By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,636 Members | 1,814 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,636 IT Pros & Developers. It's quick & easy.

SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

P: n/a
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:

%python
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from poplib import POP3_SSL
pop= POP3_SSL('pop.gmail.com', 587) Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
File "/usr/lib/python2.4/socket.py", line 74, in ssl
return _realssl(sock, keyfile, certfile)
socket.sslerror: (1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol')


Any suggestions or insight?
Jul 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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 pop.gmail.com *doesn't* provide SSL on port 587.

martin@mira:~/doc$ telnet pop.gmail.com 587
Trying 64.233.185.111...
Connected to pop.gmail.com.
Escape character is '^]'.
220 mx.gmail.com ESMTP 13sm5173422wrl

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

Regards,
Martin
Jul 21 '05 #2

P: n/a
"Martin v. Lwis" <ma****@v.loewis.de> writes:
martin@mira:~/doc$ telnet pop.gmail.com 587
Trying 64.233.185.111...
Connected to pop.gmail.com.
Escape character is '^]'.
220 mx.gmail.com ESMTP 13sm5173422wrl

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


It wants a STARTTLS command.
Jul 21 '05 #3

P: n/a
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:
[snip]
Any suggestions or insight?


Try port 465.
Jul 21 '05 #4

P: n/a
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:


GMail uses port 995.
Jul 21 '05 #5

P: n/a
On Sun, 17 Jul 2005 11:05:06 +0100, Stephen Illingworth <me@privacy.net> wrote:
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:


GMail uses port 995.


Yeah. I misread the instructions. I apologize for being an idiot.
It works just fine on port 995.
Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.