support for starttls

dtk d.t.k at
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

[0]$ ./ --version
[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/", line 308, in __init__, port)
     File "/media/dump/offlineimap/offlineimap/", 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
[5]Exception: SSL: Could not connect to server using TLSv1 or SSLv3.
   Traceback (most recent call last):
     File "/media/dump/offlineimap/offlineimap/", line 157, in open
       ssl_version = ssl.PROTOCOL_SSLv3)
     File "/usr/lib/python2.6/", line 338, in wrap_socket
     File "/usr/lib/python2.6/", line 120, in __init__
     File "/usr/lib/python2.6/", line 279, in 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