IMAP error

Alberto Valdes 1 Reputation point
2022-06-24T08:35:11.757+00:00

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(IList1 response)
at Microsoft.M365.RCA.Services.Protocols.Imap.LoginCommand.ProcessResponse(IList1 response) at Microsoft.M365.RCA.Services.Protocols.ProtocolClient.<SendCommandAsync>d__171.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:
![214725-image.png]

Also, In my Microsoft 365 admin center, under Settings->Org settings->Modern authentication, I have the following settings:
214705-image.png

When I check the auth policy with Powershell, this is what I have:
214732-image.png

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

Best regards

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange | Exchange Server | Management
{count} votes

2 answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2022-06-27T02:11:05.447+00:00

    @Alberto Valdes

    Based on your description, I think you are using Exchange online mailbox.

    Did you try to configure your mailbox in Outlook? Because there sometimes exists issue with the "Microsoft Remote Connectivity Analyzer" tool.

    I want to confirm with you that how many user have this issue? You could have a check in Service health from your Microsoft 365 admin center first. Check whether there exist issue with your tenant.

    Then try to enable OWA for this mailbox, login OWA and check whether those information below exist. You need configure IMAP account with information below:
    215174-1.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. Bruno Luis 0 Reputation points
    2023-03-29T10:58:44.03+00:00

    Hi, anyone solved this issue ?

    thanks

    0 comments No comments

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.