Microsoft Work Account via IMAP

Harentsoa RANDRIAMAHOLIMANANA 40 Reputation points
2023-11-10T11:17:45.6566667+00:00

Hi everybody.
I have an work account that i want to setup through my webmails using office365 imap and smtp but i'm not able to connect to the account even if the credentials looks all correct .

The error looks like:
IMAP Error: Login failed for myaccount@domain.com against outlook.office365.com AUTHENTICATE PLAIN: AUTHENTICATE failed

Thanks

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,273 questions
Microsoft Exchange Online
Outlook
Outlook
A family of Microsoft email and calendar products.
4,154 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Domooney-MSFT 2,596 Reputation points Microsoft Employee
    2023-11-10T12:33:21.82+00:00

    Hi @Harentsoa RANDRIAMAHOLIMANANA

    Thank you for posting your query on Microsoft Q&A.

    It is likely that your organization has IMAP blocked, as this is considered a legacy protocol and it is encouraged to keep it disabled.

    Also if your account uses MFA it is not possible to complete this when using IMAP so it will always fail.

    I would suggest to use a webmail solution which supports modern authentication, or else you would need to modify your Exchange Online mailbox to allow IMAP and bypass MFA. We have some details on this here - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/pop3-and-imap4/pop3-and-imap4

    Let me know if you have any further queries, I would be happy to help.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.