offlineimap broken by libssl1.0.0 upgrade from 1.0.0g-1ubuntu1 to 1.0.1-2ubuntu2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
offlineimap (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
openssl (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After a recent upgrade, my offlineimap configuration broke, no longer able to imap ssl.
I can verify regression occurred in the upgrade of libssl1.0.0 from
1.0.0g-1ubuntu1 to 1.0.1-2ubuntu2 .
I'm able to fix the situation by
$ i386_url=https:/
$ amd64_url=https:/
$ wget $i386_url; wget $amd64_url
$ sudo dpkg -i libssl1.0.0*.deb
Below is the trace from python after one bug in offlineimap was fixed locally (missing 'import errno').
Offlineimap does have its own "WrappedIMAP4_SLL" class that:
"""Provides an improved version of the standard IMAP4_SSL
It provides a better readline() implementation as impaplib's
readline() is extremly inefficient. It can also connect to IPv6
addresses."""
So, it is possible could result from this and not be relevant elsewhere.
$ offlineimap -c offlineimaprc -u basic -a myaccout
OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).
***** Processing account myaccount
Copying folder structure from IMAP to Maildir
Establishing connection to mail.example.
WARNING: Error occured attempting to sync account 'myaccout':
Traceback (most recent call last):
File "/usr/lib/
self.sync()
File "/usr/lib/
remoterepos
File "/usr/lib/
srcfolders = src.getfolders()
File "/usr/lib/
imapobj = self.imapserver
File "/usr/lib/
cacertfile = self.sslcacertfile)
File "/usr/lib/
IMAP4_
File "/usr/lib/
IMAP4.
File "/usr/lib/
self.open(host, port)
File "/usr/lib/
cert_reqs = requirecert)
File "/usr/lib/
ciphers=
File "/usr/lib/
self.
File "/usr/lib/
self.
error: [Errno 104] Connection reset by peer
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libssl1.0.0 1.0.1-2ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Fri Mar 30 12:33:46 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: openssl
UpgradeStatus: Upgraded to precise on 2011-11-07 (144 days ago)
Verified that this is present in the latest offlineimap release (6.3.4-1).
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'ssm'
[Errno 104] Connection reset by peer
Traceback: pymodules/ python2. 7/offlineimap/ accounts. py", line 231, in syncrunner pymodules/ python2. 7/offlineimap/ accounts. py", line 287, in sync .getfolders( ) pymodules/ python2. 7/offlineimap/ repository/ IMAP.py" , line 266, in getfolders .acquireconnect ion() pymodules/ python2. 7/offlineimap/ imapserver. py", line 219, in acquireconnection =fingerprint pymodules/ python2. 7/offlineimap/ imaplibutil. py", line 146, in __init__ WrappedIMAP4_ SSL, self)._ _init__ (*args, **kwargs) pymodules/ python2. 7/offlineimap/ imaplib2. py", line 1997, in __init__ __init_ _(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl) pymodules/ python2. 7/offlineimap/ imaplib2. py", line 329, in __init__ pymodules/ python2. 7/offlineimap/ imaplibutil. py", line 149, in open WrappedIMAP4_ SSL, self).open(host, port) pymodules/ python2. 7/offlineimap/ imaplib2. py", line 2010, in open ssl_wrap_ socket( ) pymodules/ python2. 7/offlineimap/ imaplib2. py", line 463, in ssl_wrap_socket socket( self.sock, self.keyfile, self.certfile, ca_certs= self.ca_ certs, cert_reqs= cert_reqs) python2. 7/ssl.py" , line 381, in wrap_socket ciphers) python2. 7/ssl.py" , line 143, in __init__ do_handshake( ) python2. 7/ssl.py" , line 305, in do_handshake _sslobj. do_handshake( )
File "/usr/lib/
self.sync()
File "/usr/lib/
remoterepos
File "/usr/lib/
imapobj = self.imapserver
File "/usr/lib/
fingerprint
File "/usr/lib/
super(
File "/usr/lib/
IMAP4.
File "/usr/lib/
self.open(host, port)
File "/usr/lib/
super(
File "/usr/lib/
self.
File "/usr/lib/
self.sock = ssl.wrap_
File "/usr/lib/
ciphers=
File "/usr/lib/
self.
File "/usr/lib/
self.