support for starttls

dtk d.t.k at gmx.de
Sun Apr 3 23:02:39 BST 2011


Hey guys,

I tried to use offlineimap[0] with an IMAP server that only[1][2] speaks
STARTTLS and got the known 'unknown protocol' error[3] when specifying
remoteport = 143 and ssl = yes.

I read about a patch here[4], but it doesn't seem to have made it into the vcs?

I applied the patch against v6.3.2, but it didn't go well[5] ;P so I thought I'd
just ask about the state of STARTTLS support in offlineimap? Did I mess it up?
Is it the server? Are there any plans to support it?

Thanks for your support
dtk




__________
[0]$ ./offlineimap.py --version
   6.3.2
[1]Establishing connection to <IMAP_HOST>:143.
   error: [CLIENTBUG] Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
[2]Establishing connection to <IMAP_HOST>:993.
   File "/media/dump/offlineimap/offlineimap/imaplib2.py", line 308, in __init__
       self.open(host, port)
     File "/media/dump/offlineimap/offlineimap/imaplibutil.py", line 123, in open
       raise socket.error(last_error)
   error: 111
[3]Establishing connection to <IMAP_HOST>:143.
   SSLError: [Errno 1] _ssl.c:490: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
[4]http://comments.gmane.org/gmane.mail.imap.offlineimap.general/2523
[5]Exception: SSL: Could not connect to server using TLSv1 or SSLv3.
   Traceback (most recent call last):
     File "/media/dump/offlineimap/offlineimap/imaplibutil.py", line 157, in open
       ssl_version = ssl.PROTOCOL_SSLv3)
     File "/usr/lib/python2.6/ssl.py", line 338, in wrap_socket
       suppress_ragged_eofs=suppress_ragged_eofs)
     File "/usr/lib/python2.6/ssl.py", line 120, in __init__
       self.do_handshake()
     File "/usr/lib/python2.6/ssl.py", line 279, in do_handshake
       self._sslobj.do_handshake()
   SSLError: [Errno 1] _ssl.c:490: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number




More information about the OfflineIMAP-project mailing list