XOAUTH2 (aka "modern authentication") for IMAP does not work for some "*@outlook.com" accounts

Denys Soroka 1 Reputation point
2021-09-29T05:20:10.903+00:00

Microsoft announce support for XOAUTH2 authentication year ago and it works of Office/Microsoft 365 subscription (at least to my company subscription).

But for outlook.com accounts it works only for a selected accounts.

I have two outlook.com accounts, say "old@harsh.com .com" created years ago and "new@harsh.com .com" created recently.
And IMAP connection for "new" is working ok, but for "old" responded with "NO AUTHENTICATE failed."
I checked transcript and saw that accounts use different servers:

old@outlook.com
~~~
* OK The Microsoft Exchange IMAP4 service is ready. [UwBHADIAUABSADAANgAwADEAQwBBADAAMAAyADIALgBhAHAAYwBwAHIAZAAwADYALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==]
unbase64(Uw....) is SG2PR0601CA0022.apcprd06.prod.outlook.com
...
fsp04 AUTHENTICATE XOAUTH2 ....
fsp04 NO AUTHENTICATE failed.
~~~

new@outlook.com
~~~
* OK The Microsoft Exchange IMAP4 service is ready. [UwBHADIAUABSADAAMQBDAEEAMAAxADUANgAuAGEAcABjAHAAcgBkADAAMQAuAHAAcgBvAGQALgBlAHgAYwBoAGEAbgBnAGUAbABhAGIAcwAuAGMAbwBtAA==]
unbase64(Uw....) is SG2PR01CA0156.apcprd01.prod.exchangelabs.com
...
fsp05 AUTHENTICATE XOAUTH2 ....
fsp05 OK AUTHENTICATE completed.
~~~

Additionally, SMTP XAUTH2 authentication works for both "old" and "new" accounts w/o problem

Can i get some comment from outlook.com / exchange team - it is normal? Is the "modern authentication" not rolled to all "outlook.com" accounts yet?


Question was moved to the outlook.com forum

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,632 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,708 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.