I am using offlineimap
to fetch mail from several IMAP servers. This used to work but today offlineimap
has been unable to fetch mail, producing the following errors:
*** Processing account example
Establishing connection to imap.gmail.com:993
ERROR: Unknown SSL protocol connecting to host 'imap.gmail.com' for
repository '<redacted>'. OpenSSL responded:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
*** Finished account 'example' in 0:00
Relevant parts of my configuration are:
[Account example]
localrepository = local-example
remoterepository = remote-example
[Repository local-example]
type = Maildir
localfolders = ~/mail/example
[Repository remote-example]
maxconnections = 1
type = Gmail
remotehost = imap.gmail.com
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]",
server="imap.gmail.com")
ssl = yes
sslcacertfile = /usr/local/etc/openssl/certs/dummycert.pem
The sslcacertfile
configuration was created in response to this SO answer. The get_keychain_pass
function is from this offlineimap configuation.
I am using offlineimap
6.5.7 built with Homebrew on OS X 10.10.4.