Hi Norm, * Norm Wood <normw...@fastmail.fm> [2025-07-07 19:36]: [...] > appreciate suggestions on how to diagnose the problem further. After > looking through isync-devel, I've also tried authenticating using the > oauth2ms tool.
I had success here with the instructions from https://people.maths.bris.ac.uk/~mb13434/linux_m_uob/o365_imap_smtp.html and below are my notes from how I did it about two years ago. Perhaps this is helpful? They come without any warranty though. best, Peter ------> sudo aptitude install libsasl2-dev git clone https://github.com/moriyoshi/cyrus-sasl-xoauth2.git ./autogen.sh ./configure Edit Makefile to have the line pkglibdir = ${CYRUS_SASL_PREFIX}/lib/sasl2 yield pkglibdir = ${CYRUS_SASL_PREFIX}/lib/x86_64-linux-gnu/sasl2 and run sudo make install which installs libraries into /usr/lib/x86_64-linux-gnu/sasl2 Reinstall isync to make it aware of the new sasl plugin(?) sudo aptitude reinstall isync Get this following tool to fetch oauth2 tokens and copy it into ~/bin git clone https://github.com/harishkrupo/oauth2ms.git cd oauth2ms cp oauth2ms ~/bin/ Install requirements via apt apt install python3-xdg python3-msal python3-gnupg Now I need to create and edit ~/.config/oauth2ms/config.json to yield { "tenant_id": "TENANT_ID", "client_id": "CLIENT_ID", "client_secret": "CLIENT_SECRET", "redirect_host": "localhost", "redirect_port": "5000", "redirect_path": "/getToken/", "scopes": ["https://outlook.office.com/IMAP.AccessAsUser.All", "https://outlook.office.com/SMTP.Send"] } Where TENANT_ID and CLIENT_ID are long strings which I got from the local administrators of that email service. Then I ran oauth2ms and it opened a browser through which I logged in and oauth2ms received a token in return, which got stored as ~/.local/share/oauth2ms/credentials.bin _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel