Strange error but synching anyway with gmail

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed Sep 21 14:58:28 BST 2016


On Wed, Sep 21, 2016 at 12:29:16PM +0200, Rainer M Krug wrote:
> Rainer M Krug <Rainer at krugs.de> writes:
> 
> > Hi
> >
> > I get the following error when authorizing with gmail. The strange thing
> > is that the sync works afterwards anyway. Any suggestions?

I guess the XOAUTH2 authentication fails and offlineimap fallbacks to
another authentication method.

> > ,----
> > | ...
> > | XOAUTH2 authentication failed: AUTHENTICATE command error: BAD
> > | ['Client aborted AUTHENTICATE command. 24mb158715449edv']. Data:
> > | DKIJ2 AUTHENTICATE XOAUTH2
> > | ...
> > | XOAUTH2 authentication failed: AUTHENTICATE command error: BAD
> > | ['Client aborted AUTHENTICATE command. i20mb364599303ede']. Data:
> > | CGCN2 AUTHENTICATE XOAUTH2
> > | ...
> > | XOAUTH2 authentication failed: AUTHENTICATE command error: BAD
> > | ['Client aborted AUTHENTICATE command. o13mb189629961edo']. Data:
> > | NCJO2 AUTHENTICATE XOAUTH2
> > | ...
> > `----
>
> Forgot to ad my .offlineimaprc file - here it is:
> 
> ,----
> | [general]
> | accounts = Gmail
> | maxsyncaccounts = 3
> | fsync = true
> | ignore-readonly = no
> | pythonfile = ~/.offlineimap.py
> | 
> | [Account Gmail]
> | localrepository  = LocalRMKrugGMAIL
> | remoterepository = RemoteRMKrugGMAIL
> | ######
> | status_backend = sqlite
> | ######
> | postsynchook = /usr/local/bin/notmuch new
> | ######
> | autorefresh = 2
> | quick = 10
> | ######
> | 
> | [Repository RemoteRMKrugGMAIL]
> | type = Gmail
> | sslcacertfile = /usr/local/etc/openssl/cert.pem
> | ######
> | remoteuser = USERNA=ME
> | remotepasseval = get_keychain_pass(account="RMKrugGmailOfflineimap")
> | ######
> | maxconnections = 5
> | ######
> | nametrans = lambda foldername: 'RMKrugGMAIL.' + foldername
> | ######
> | ######
> | keepalive = 60
> | holdconnectionopen = no
> | ######

I bet you have other configuration options enabled. You should paste all
of them and strip your private data. ,-)

> | [Repository LocalRMKrugGMAIL]
> | type = IMAP
> | preauthtunnel = /usr/local/opt/dovecot/libexec/dovecot/imap -o mail_location=maildir:$HOME/Maildir
> | holdconnectionopen = yes
> | ######
> | nametrans = lambda folder: re.sub('^RMKrugGMAIL.', '', folder)
> | ######
> | folderfilter = lambda folder: folder.startswith('RMKrugGMAIL')
> | ######
> | keepalive = 60
> | holdconnectionopen = no
> | ######
> `----

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list