Package: offlineimap
Version: 6.5.4-2
Severity: normal

Certain IMAPS servers require openssl to be invoked with the '-ssl3' to be
invoked. For example, MIT's exchange servers require the -ssl3 flag in order to
connect, in e.g.,

    (echo "001 capability" ; sleep 1) | openssl s_client -crlf -ssl3 -connect \
            imap.exchange.mit.edu:imaps

without which the connection hangs because it receives no response. Because of
this, offlineimap hangs when trying to download mail:

-- BEGIN TRACE --
% offlineimap -a MIT -o -d ALL -1
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for maildir: Maildir repository debugging
Now debugging for thread: Threading debugging
Now debugging for : Other offlineimap related sync messages
Account sync MIT:
 [thread]: Register new thread 'Account sync MIT' (account 'MIT')
 *** Processing account MIT
 Establishing connection to imap.exchange.mit.edu:993
 [imap]:   34:11.70 Account sync MIT imaplib2 version 2.33
 [imap]:   34:11.70 Account sync MIT imaplib2 debug level 5, buffer level 3
 ERROR: While attempting to sync account 'MIT'
  [Errno 104] Connection reset by peer
 ['  File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 234, 
in syncrunner\n    self.sync()\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 290, in sync\n 
   remoterepos.getfolders()\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/repository/IMAP.py", line 268, in 
getfolders\n    imapobj = self.imapserver.acquireconnection()\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imapserver.py", line 215, in 
acquireconnection\n    fingerprint=fingerprint\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 142, in 
__init__\n    super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)\n', '  
File "/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1998, in 
__init__\n    IMAP4.__init__(self, host, port, debug, debug_file, identifier, 
timeout, debug_buf_lvl)\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 329, in 
__init__\n    self.open(host, port)\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 145, in 
open\n    super(WrappedIMAP4_SSL, self).open(host, port)\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 2011, in 
open\n    self.ssl_wrap_socket()\n', '  File 
"/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 463, in 
ssl_wrap_socket\n    self.sock = ssl.wrap_socket(self.sock, self.keyfile, 
self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs)\n', '  File 
"/usr/lib/python2.7/ssl.py", line 381, in wrap_socket\n    ciphers=ciphers)\n', 
'  File "/usr/lib/python2.7/ssl.py", line 143, in __init__\n    
self.do_handshake()\n', '  File "/usr/lib/python2.7/ssl.py", line 305, in 
do_handshake\n    self._sslobj.do_handshake()\n']
 *** Finished account 'MIT' in 1:00
 ERROR: Exceptions occurred during the run!
 ERROR: While attempting to sync account 'MIT'
  [Errno 104] Connection reset by peer
 
Traceback:
  File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 234, in 
syncrunner
    self.sync()
  File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 290, in 
sync
    remoterepos.getfolders()
  File "/usr/lib/python2.7/dist-packages/offlineimap/repository/IMAP.py", line 
268, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/lib/python2.7/dist-packages/offlineimap/imapserver.py", line 215, 
in acquireconnection
    fingerprint=fingerprint
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 142, 
in __init__
    super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1998, 
in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, 
debug_buf_lvl)
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 329, in 
__init__
    self.open(host, port)
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 145, 
in open
    super(WrappedIMAP4_SSL, self).open(host, port)
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 2011, 
in open
    self.ssl_wrap_socket()
  File "/usr/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 463, in 
ssl_wrap_socket
    self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, 
ca_certs=self.ca_certs, cert_reqs=cert_reqs)
  File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 143, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
    self._sslobj.do_handshake()
-- END TRACE --

Best wishes,
Ryan

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages offlineimap depends on:
ii  libjs-sphinxdoc  1.1.3+dfsg-4
ii  python           2.7.3-5
ii  python2.6        2.6.8-1.1
ii  python2.7        2.7.3-8

Versions of packages offlineimap recommends:
ii  python-sqlite  1.0.1-9

Versions of packages offlineimap suggests:
ii  doc-base         0.10.4
pn  python-kerberos  <none>

-- no debconf information

-- 
|_)|_/  Ryan Kavanagh           | Debian Developer
| \| \  http://ryanak.ca/       | GPG Key 4A11C97A

Attachment: signature.asc
Description: Digital signature

Reply via email to