IMAP/POP error ExchangeOnline mailbox

Joe37 0 Reputation points
2023-07-12T08:44:07.23+00:00

We have issue with O365 ExchangeOnline mailboxes.

By using testconnectivity.microsoft.com we found out that IMAP and POP3 are failing -->

  1. 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. [RABNADYAUABSADAAMQBDAEEAMAAwADEAOAAuAHAAcgBvAGQALgBlAHgAYwBoAGEAbgBnAGUAbABhAGIAcwAuAGMAbwBtAA==] 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 @.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()

  1. The POP service is being tested.

There was an error testing the IMAP/POP service.

Additional Details:

S: +OK The Microsoft Exchange POP3 service is ready. [RABTADcAUAAyADIAMgBDAEEAMAAwADIAOQAuAE4AQQBNAFAAMgAyADIALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==] S: +OK S: TOP S: UIDL S: STLS S: . C: STLS S: +OK Begin TLS negotiation. C: CAPA S: +OK S: TOP S: UIDL S: SASL PLAIN XOAUTH2 S: USER S: . C: USER @.com S: +OK C: PASS ******** S: -ERR Logon failure: unknown user name or bad password. Exception details:
S: -ERR Logon failure: unknown user name or bad password. Exception details: Message: The POP server responded with an error status "-ERR Logon failure: unknown user name or bad password.". Type: Microsoft.M365.RCA.Services.Protocols.Pop.PopServerErrorException Stack trace: at Microsoft.M365.RCA.Services.Protocols.Pop.PopCommand1.CheckForOk(IList1 response) at Microsoft.M365.RCA.Services.Protocols.Pop.PassCommand.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.Services.Protocols.Pop.PopProtocolClient.<LoginUserPass>d__6.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()

The same 2 errors that are being displayed in test we are receiving within our application that we want to use to send emails.

Any help on this issue?

Microsoft Exchange Online
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 37,691 Reputation points Microsoft Vendor
    2023-07-13T01:50:30.53+00:00

    Hi @Joe37

    Are you testing with basic authentication or Oauth authentication?

    If it is basic authentication, kindly note that Exchange Online has blocked basic auth for IMAP4/POP3 since 12/31/2022.

    For more details please refer to this link: Deprecation of Basic authentication in Exchange Online

    01

    If your application doesn't support Oauth 2.0, please follow this link for guidance:

    Authenticate an IMAP, POP or SMTP connection using OAuth


    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.


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.