You are not logged in.

#1 2024-04-30 07:49:08

whiteman808
Member
Registered: 2024-04-13
Posts: 22

mbsync error when logging into into Microsoft 365 account

I have installed cyrus-sasl, and cyrus-sasl-xoauth2-git and I still have an error

$ mbsync mymail
C: 0/5  B: 0/5  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
Error performing SASL authentication step: SASL(-1): generic failure: Unable to find a callback: 32775
C: 5/5  B: 0/5  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0

I followed all instruction in the https://wiki.archlinux.org/title/Isync#Using_XOAUTH2. What did I wrong?

IMAPAccount mymail
Host outlook.office365.com
User user@domain
AuthMechs XOAUTH2 
PassCmd "~/.mutt/mutt_oauth2.py ~/.mutt/TOKEN"
#SSLType IMAPS
#SSLVersions TLSv1.2
#CertificateFile /etc/ssl/certs/ca-certificates.crt

# Remote storage
IMAPStore mymail-remote
UseUTF8Mailboxes yes
Account mymail

# Local storage
MaildirStore mymail-local
Path ~/Mail/private/
Inbox ~/Mail/private/INBOX

Channel mymail-inbox
Far :mymail-remote:"INBOX"
Near :mymail-local:INBOX
Create Both
Expunge Both

Channel mymail-drafts
Far :mymail-remote:"Drafts"
Near :mymail-local:Drafts
Create Both
Expunge Both

Channel mymail-sent
Far :mymail-remote:"Sent"
Near :mymail-local:Sent
Create Both
Expunge Both

Channel mymail-trash
Far :mymail-remote:"Trash"
Near :mymail-local:Trash
Create Both
Expunge Both

Channel mymail-junk
Far :mymail-remote:"Junk"
Near :mymail-local:Junk
Create Both
Expunge Both

Group mymail
Channel mymail-inbox
Channel mymail-drafts
Channel mymail-sent
Channel mymail-trash
Channel mymail-junk

Last edited by whiteman808 (2024-04-30 08:08:23)

Offline

Board footer

Powered by FluxBB