Help connecting to icloud after upgrade

Rainer M Krug Rainer at krugs.de
Mon Nov 17 08:37:10 GMT 2014


Jamie Allen <jsdckr at me.com> writes:

> Greetings
>
> Thanks for any advice on this. After an upgrade of Opensuse, offlineimap required the cert fingerprints to be replaced in .offlineimaprc (not sure why?)
>
> Anyway - despite having updated with the fingerprint offered by imap.mail.me.com - it still fails to connect, with the following error :
>
> Establishing connection to imap.mail.me.com:993
> PLAIN authentication failed: [AUTHENTICATIONFAILED] Authentication failed
> LOGIN authentication failed: command: LOGIN => socket error: <type 'exceptions.IOError'> - Too many read 0
> ERROR: All authentication types failed:
> 	PLAIN: [AUTHENTICATIONFAILED] Authentication failed
> 	LOGIN: command: LOGIN => socket error: <type 'exceptions.IOError'> - Too many read 0
> *** Finished account 'home' in 0:05
> ERROR: Exceptions occurred during the run!
> ERROR: All authentication types failed:
> 	PLAIN: [AUTHENTICATIONFAILED] Authentication failed
> 	LOGIN: command: LOGIN => socket error: <type 'exceptions.IOError'> - Too many read 0
>
> Traceback:
>   File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 243, in syncrunner
>     self.__sync()
>   File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 305, in __sync
>     remoterepos.getfolders()
>   File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 323, in getfolders
>     imapobj = self.imapserver.acquireconnection()
>   File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 418, in acquireconnection
>     self.__authn_helper(imapobj)
>   File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 339, in __authn_helper
>     "failed:\n\t%s" % msg, OfflineImapError.ERROR.REPO)
>
>
> .offlineimaprc entry reads :
>
> [Repository remote-home]
> remotehost = imap.mail.me.com
> remoteuser = xxx
> remotepass = xxx
> type = IMAP
> ssl = yes
> cert_fingerprint = ca63a1b71691dde647ee61e20dc7e242052db8c0

DOn't know if this solves your issue, but I have the following config
working (see
http://permalink.gmane.org/gmane.mail.imap.offlineimap.general/6550 for details):


,----
| This is finally solved. The problem seems to be that I was using my
| email address as a password, while the remoteuser has to be the name *of
| the iCloud email address* (so ThisIsTheRemoteuser at icloud.com)!
| 
| Then, if you are using two step authentication enabled (which one
| should!) you have to create an application password and use this one.
| 
| Below please find my working configuration 
| 
| ,----
| | [Repository RemoteiCloud]
| | type = IMAP
| | remotehost = imap.mail.me.com
| | port = 993
| | ssl = yes
| | sslcacertfile = ~/certs/Certificates.cer
| | remoteuser = iCloudEmailAddressBeforeTheAt
| | remotepasseval = get_keychain_pass(account="rainer.friCloudOfflineimap")
| `----
`----

Concerning the sslcertfile, I exported my keyring certificates to this
file.

Hope this helps,

Rainer

>
>
> ....I have drawn a blank on trying to fix this. Please help!!
>
> With thanks
>
> Jamie
>
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
>
> OfflineIMAP homepage: http://software.complete.org/offlineimap
>

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20141117/27d4e0bb/attachment-0003.sig>


More information about the OfflineIMAP-project mailing list