Offlineimap stopped working w new_open_ssl

Julien T julien.t43 at
Mon Feb 18 22:41:38 GMT 2013


I was happily using Offlineimap (6.2 on OpenBSD 4.8; I know, a bit
old) to backup a gmail account and it seems one or two month ago, it
stopped working. I'm not sure exactly when as I was not checking this
backup job regularly.

Message is the following
This is OfflineIMAP 6.2.0
Python: 2.5.4 (r254:67916, Aug  9 2010, 08:57:51)
[GCC 4.2.1 20070719 ]
Platform: openbsd4
Args: ['/usr/local/bin/offlineimap', '-l',
'/var/tmp/', '-d', 'imap', '-1']
MainThread: OfflineIMAP 6.2.0
Copyright (C) 2002 - 2009 John Goerzen <jgoerzen at>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.
MainThread: Now debugging for imap: IMAP protocol debugging
Account sync gmail: ***** Processing account gmail
Account sync gmail: Copying folder structure from Gmail to Maildir
Account sync gmail: Establishing connection to
MainThread: Thread 'Account sync gmail' terminated with exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 149, in run
  File "/usr/local/lib/python2.5/", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 183, in syncrunner
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 220, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File "/usr/local/lib/python2.5/site-packages/offlineimap/repository/",
line 135, in syncfoldersto
    srcfolders = src.getfolders()
  File "/usr/local/lib/python2.5/site-packages/offlineimap/repository/",
line 214, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 259, in acquireconnection
    self.sslclientkey, self.sslclientcert)
  File "/usr/local/lib/python2.5/", line 1128, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/local/lib/python2.5/", line 163, in __init__, port)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 85, in open
    imaplibutil.new_open_ssl(self, host, port)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/",
line 171, in new_open_ssl
    raise socket.error(last_error)
error: 65

Last 1 debug messages logged for Account sync gmail prior to exception:
maildir: MaildirRepository initialized, sep is '.'

Conf is the following
accounts = gmail
ui = Noninteractive.Basic

[Account gmail]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Mail

[Repository Remote]
type = Gmail
remoteuser = <user>
remotepassfile = ~/.<secretfile>
realdelete = no
folderfilter = lambda foldername: foldername not in [
        '[Gmail]/Trash]', '[Gmail]/Spam', '[Gmail]/All Mail',

It seems a ssl error but I look on the web and it doesn't seem to have
a change of certificate for gmail.
Any ideas why it failed ?
I'm also trying to check if I can update offlineimap without all the system.

Thanks a lot.


More information about the OfflineIMAP-project mailing list