Fix email errors / Signing in to a mail app

Microsoft 365 IMAP "authentication failed" for a work account

Exchange Online no longer accepts basic (password) authentication for IMAP, so the mail app must sign in with Microsoft’s Modern Auth (OAuth 2.0). If that still fails, your admin may have turned IMAP off for your mailbox or blocked it with security defaults or Conditional Access.

For you

Remove the account and add it again with the app's Microsoft 365 or Exchange option so it opens Microsoft's sign-in page. Typing the password into an IMAP form will keep failing.

For your administrator

  • IMAP for the mailbox: Microsoft 365 admin center, Users, Active users, the user, Mail, Manage email apps: IMAP must be ticked.
  • App consent: the organization may need to allow the mail app to sign in (Entra ID, Enterprise applications).
  • Conditional Access: a policy may block the app or its location.

Sending from a mail app has its own switch: see Microsoft 365 SMTP AUTH is turned off.