In order to use isync with my microsoft university email I originally used davmail. It worked, but was finicky. And would choke when trying to update large mail boxes.
Currently I use pizauth ( https://github.com/ltratt/pizauth ), and it has been working very well. It took me a while to get it configured, but now I don't really think about it very much. My rc file looks like this: IMAPAccount university Host outlook.office365.com User <email_address> # The magic command that gets the token from pizauth PassCmd "pizauth show <institutional name>" AuthMechs XOAUTH2 TLSType IMAPS # Patience settings for large mailboxes Timeout 60 PipelineDepth 1 Good luck PS. Claude really helped with the setup for Pizauth. "Peter P." <[email protected]> writes: > Hi list, > > I struggling, like possibly many others, to get mbsync to fetch emails > from microsoft accounts with (X)OAUTH especially now that admins are > disabling "device code flow" for security reasons. > > So far I have used mbsync with oauth2ms[1] > PassCmd oauth2ms > AuthMechs XOAUTH2 > with tenant_id and client_id specified in ~/.config/oauth2ms/config.json > > or especially oama[2], as it permits using different accounts: > PassCmd "oama access user@domain" > AuthMechs XOAUTH2 > with a thunderbird client_id specified in ~/.config/oama/config.yaml as > microsoft: > client_id: 9e5f94bc-e8a4-4e73-b8be-63364c29d753 > > To authorize oama I was using the "device code flow" > oama authorize microsoft user@domain --device > which sent me to a webpage where I made a 2FA login via a hardware > security USB key. > > Several admins are now disabling the "device code flow" for security > reasons and I can no longer authorize, getting an error described in > https://github.com/harishkrupo/oauth2ms/issues/9 > > Do I require both client_{id,secret} values from these admins to > authorize oama without device code flow? What if I can't get those > values from the admins? > > How are others using mbsync with microsoft institutional accounts but > without "device code flow"? > > Thanks for any help! > Peter > > [1] https://github.com/harishkrupo/oauth2ms > [2] https://github.com/pdobsan/oama > > > _______________________________________________ > isync-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/isync-devel -- Britt Anderson, PhD & MD Dept. of Psychology and Centre for Theoretical Neuroscience University of Waterloo, Canada https://brittlab.uwaterloo.ca _______________________________________________ isync-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/isync-devel
