IMAP authentication issue.

Microsoft Q & A 381 Reputation points
2022-08-19T19:38:05.627+00:00

Getting below error for Microsoft account using IMAP in the application. SMTP working fine. No sign in failures logs in Azure Portal for the account.

<EML> <TID: 41> <SEVERE > <LoggingModule> /* Fri Aug 19 2022 14:54:41.858 */ Could not connect to Email server Name/IP :outlook.office365.com because of Authentication Failed. Mailbox Configuration used: Email Server Type :IMAP4 , Email Server Port :993 , Email Server User name :abc@xyz .com, Email Server Connection Security :YES . Email ID:

<EML> <TID: 41> <SEVERE > <com.sun.mail.imap.IMAPStore> /* Fri Aug 19 2022 14:54:41.858 */ AUTHENTICATE failed. . Email ID:

<EML> <TID: 41> <INFO > <LoggingModule> /* Fri Aug 19 2022 14:54:41.858 */ *****Receiver [Thread[AGGI6JR1BA60KAMR3OAQK9E9F2GQ78,5,Receiver Module]] Attempt : 2 failed to open a store will retry after one minute.

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

1 answer

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,886 Reputation points Microsoft External Staff
    2022-08-22T07:23:31.833+00:00

    Hi @Microsoft Q & A ,
    Please refer to the following steps to check whether the security defaults are enabled in your organization:
    • Sign in to the Azure portal as a Security administrator, Conditional Access administrator, or Global administrator.
    • Browse to Azure Active Directory > Properties.
    • Select Manage security defaults.
    • Check to see if the Enable Security Defaults switch is Yes.
    If yes, Basic authentication is already disabled in Exchange Online . You can choose to change it to NO and see if the application can authenticate successfully.

    If you haven't set up security defaults or authentication policies, the Basic authentication might have disabled in your tenant.
    Disable Basic authentication in Exchange Online | Microsoft Learn

    233367-2022-8-22-1.png

    According to the official documentation, basic authentication will be disabled from 2022-10-1 for the sake of improved security. This change affects the applications and scripts you might use in different ways.
    233414-2022-8-22-2.png

    If possible, we recommend that you use modern authentication as soon as possible to avoid the impact of subsequent use.


    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.

    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.