Hi,
The overview is that I am using mbsync to try to make a local mirror of
my work email, which is located on outlook.office365.com. I already
have a working mutt_oauth2.py setup that I use with mutt to read this
email via IMAP. With mbsync, however, using the same mutt_oauth2.py
setup, the sync fails with an "AUTHENTICATE failed" message.
I've attached text files of mbsyncrc and diagnostic messages. I'd
appreciate suggestions on how to diagnose the problem further. After
looking through isync-devel, I've also tried authenticating using the
oauth2ms tool. I can provide details of that also, but it failed with
the same messages.
This is on a Slackware 15 system, and the SASL framework linked to
mbsync is Cyrus SASL 2.1.28.
Thanks,
Norm
isync 1.5.1 called with: '-DDMN' 'test'
Reading configuration file /home/user/.mbsyncrc
merge ops (in Channel 'test'):
common: XOP_PULL
far:
XOP_HAVE_TYPE,XOP_HAVE_EXPUNGE,XOP_HAVE_CREATE,XOP_HAVE_REMOVE,XOP_EXPUNGE_NOOP,XOP_REMOVE_NOOP
near: OP_CREATE
=> far:
XOP_HAVE_TYPE,XOP_HAVE_EXPUNGE,XOP_HAVE_CREATE,XOP_HAVE_REMOVE,XOP_EXPUNGE_NOOP,XOP_REMOVE_NOOP
=> near: OP_NEW,OP_UPGRADE,OP_GONE,OP_FLAGS,OP_CREATE
channel ops (test):
far:
near:
Channel test
Opening far side store work-remote...
F: [ 1] Enter connect_store
Resolving outlook.office365.com...
F: [ 1] Leave connect_store
Opening near side store work-mirror...
N: [ 2] Enter connect_store
N: [ 2] Callback enter connect_store, sts=0
pattern '*' (effective '*'): Path, no INBOX
N: [ 3] Enter list_store, flags=2
N: [ 3] Callback enter list_store, sts=0
INBOX
N: [ 3] Callback leave list_store
N: [ 3] Leave list_store
N: [ 2] Callback leave connect_store
N: [ 2] Leave connect_store
Connecting to outlook.office365.com (52.96.180.114:993)...
Connection is now encrypted
F: * OK The Microsoft Exchange IMAP4 service is ready. [RABTA ...snip...
AG8AbwBrAC4AYwBvAG0A]
F: >>> 1 CAPABILITY
F: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID
UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
F: 1 OK CAPABILITY completed.
Logging in...
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
![SASL-XOAUTH2] - filling prompts
!Authenticating with SASL mechanism XOAUTH2...
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
!F: >>> 2 AUTHENTICATE XOAUTH2 dXNlcj ...snip... MzdGpaS2hxY3ROQVMwSWJBAQE=
F: 2 NO AUTHENTICATE failed.
IMAP command 'AUTHENTICATE XOAUTH2 dXNlcj ...snip...
MzdGpaS2hxY3ROQVMwSWJBAQE=' returned an error: AUTHENTICATE failed.
F: [ 1] Callback enter connect_store, sts=3
F: Enter free_store
F: Leave free_store
N: Enter free_store
N: Leave free_store
F: [ 1] Callback leave connect_store
IMAPAccount work
Host outlook.office365.com
Port 993
User nwo...@wisc.edu@outlook.office365.com
PassCmd "/usr/local/bin/mutt_oauth2.py /home/norm/.mutt/o364.tokens"
AuthMechs XOAUTH2
TLSType IMAPS
IMAPStore work-remote
Account work
MaildirStore work-mirror
Path /vault1/Test/Maildir/
Inbox /vault1/Test/Maildir/INBOX
SubFolders Verbatim
Channel test
Far :work-remote:
Near :work-mirror:
Patterns *
Expunge None
Remove None
CopyArrivalDate yes
Sync Pull
Create Near
SyncState *
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel