You are not logged in.

#1 2023-12-02 11:19:32

meezoarch
Member
Registered: 2022-12-01
Posts: 42

mbsync IMAP error when using xoauth2

I am trying to configure mbsync for my gmail account.
I have successfully authorized a token using the mutt_xoauth2.py

I configured my gmail account on mbsyncrc

Host imap.gmail.com
Port 993
User username@gmail.com
PassCmd "/path/to/mutt_oauth2.py /path/to/gmail.tokens"
AuthMechs XOAUTH2
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt

I am getting an error as below

IMAP error: selected SASL mechanism(s) not available;
   selected: XOAUTH2
   available: SCRAM-SHA-1 SCRAM-SHA-256 GSS-SPNEGO GSSAPI DIGEST-MD5 EXTERNAL OTP CRAM-MD5 PLAIN LOGIN ANONYMOUS
C: 1/1  B: 0/0  M: +0/0 *0/0 #0/0  S: +0/0 *0/0 #0/0

Any idea how to fix this?

Offline

Board footer

Powered by FluxBB