Hello everyone,
if I go to https://testconnectivity.microsoft.com/ select Exchange Server ,then select IMAP Email and test the connection, I get this error:
(I replaced the real Email address with login@keyman .com)
The IMAP service is being tested.
There was an error testing the IMAP service
Additional Details
Protocol Log: C: 1 CAPABILITY
S: * OK The Microsoft Exchange IMAP4 service is ready. [RABNADYAUABSADAANgBDAEEDEAOLIJghPOUGGöhAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]
S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
S: 1 OK CAPABILITY completed.
C: 2 LOGIN login@keyman .com ********
S: 2 NO LOGIN failed.
Exception details:
Message: The IMAP server responded with an error status "2 NO LOGIN failed.".
Type: Microsoft.M365.RCA.Services.Protocols.Imap.ImapServerErrorException
Stack trace:
at Microsoft.M365.RCA.Services.Protocols.Imap.ImapCommand1.CheckForOk(IList
1 response)
at Microsoft.M365.RCA.Services.Protocols.Imap.LoginCommand.ProcessResponse(IList1 response) at Microsoft.M365.RCA.Services.Protocols.ProtocolClient.<SendCommandAsync>d__17
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.M365.RCA.ConnectivityTests.ImapPop.BaseProtocolTest.<PerformTestInternalAsync>d__12.MoveNext()
Now, if I go to https://testconnectivity.microsoft.com/ select Office 365 ,then select IMAP Email and test the connection, it works without any problem.
This happens for all accounts.
The account I used for testing, does not have 2FA enable and in the Exchange admin center, IMAP is enabled:
]
Also, In my Microsoft 365 admin center, under Settings->Org settings->Modern authentication, I have the following settings:

When I check the auth policy with Powershell, this is what I have:

Does anyone have any idea what is going on?
Why do the checks return this "2 NO LOGIN failed." error?
Best regards