- Microsoft has retired basic authentication for SMTP AUTH in Exchange Online, or your organization has disabled it.
- Your app, printer, scanner or script only supports signing in with a username and password.
535 5.7.139: Basic authentication is disabled
Microsoft 365SMTPSign-in problem
The error usually looks like this:
What it means
Microsoft 365 rejected your app’s username and password because basic authentication (signing in with just a password) is switched off for SMTP. Your app must sign in using OAuth 2.0 instead.
Common causes
How to fix it
- Update your app to a version that supports OAuth 2.0 (sometimes called Modern Authentication) for SMTP.
- If your app or device cannot be updated, use Auth-Email: it signs in to Microsoft 365 with OAuth for you, while your app keeps using a normal username and password.
- For devices that only send to internal recipients, Microsoft’s alternatives are direct send or an SMTP relay connector, which do not require sign-in but have other limitations.
Tools to help diagnose it
Can’t update your app to use OAuth?
Auth-Email fixes sign-in errors like this one without changing your app, printer, scanner or script. It signs in to Microsoft 365 with OAuth on your app’s behalf, while your app keeps using a normal username and password over IMAP, POP or SMTP.