SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Reese

    SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

    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.[color=blue][color=green][color=darkred]
    >>> from poplib import POP3_SSL
    >>> pop= POP3_SSL('pop.g mail.com', 587)[/color][/color][/color]
    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_HELL O:unknown protocol')[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]

    Any suggestions or insight?
  • Martin v. Löwis

    #2
    Re: SSL problem... SSL23_GET_SERVE R_HELLO:unknown protocol

    John Reese wrote:[color=blue]
    > 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:[/color]
    [...][color=blue]
    > socket.sslerror : (1, 'error:140770FC :SSL routines:SSL23_ GET_SERVER_HELL O:unknown protocol')
    >
    >
    > Any suggestions or insight?[/color]

    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

    Comment

    • Paul Rubin

      #3
      Re: SSL problem... SSL23_GET_SERVE R_HELLO:unknown protocol

      "Martin v. Löwis" <martin@v.loewi s.de> writes:[color=blue]
      > 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.[/color]

      It wants a STARTTLS command.

      Comment

      • Stephen Illingworth

        #4
        Re: SSL problem... SSL23_GET_SERVE R_HELLO:unknown protocol

        John Reese wrote:[color=blue]
        > 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:[/color]

        [snip]
        [color=blue]
        > Any suggestions or insight?[/color]

        Try port 465.

        Comment

        • Stephen Illingworth

          #5
          Re: SSL problem... SSL23_GET_SERVE R_HELLO:unknown protocol

          John Reese wrote:[color=blue]
          > 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:[/color]

          GMail uses port 995.

          Comment

          • John Reese

            #6
            Re: SSL problem... SSL23_GET_SERVE R_HELLO:unknown protocol

            On Sun, 17 Jul 2005 11:05:06 +0100, Stephen Illingworth <me@privacy.net > wrote:[color=blue]
            > John Reese wrote:[color=green]
            >> 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:[/color]
            >
            > GMail uses port 995.[/color]

            Yeah. I misread the instructions. I apologize for being an idiot.
            It works just fine on port 995.

            Comment

            Working...