
535 5.7.139 means Microsoft 365 refused a password sign-in to smtp.office365.com because Basic authentication for SMTP AUTH is off. Microsoft turns it off by default for existing tenants at the end of December 2026. Find every sender in the SMTP AUTH clients report, then move each one to OAuth, Microsoft Graph or a relay connector.
Why does Microsoft 365 reject SMTP with 535 5.7.139?
Many small business systems send email by logging in to smtp.office365.com with a mailbox address and its password: the website contact form that emails new leads, the CRM that sends quotes, the accounting tool that sends invoices, the office scanner, and automations that alert the team. That sign-in method is Basic authentication over SMTP AUTH. When Microsoft 365 refuses it, the app’s log usually shows a line like “535 5.7.139 Authentication unsuccessful, basic authentication is disabled,” the wording quoted in a Microsoft Q&A thread (community). The password is often correct. The method is what is blocked.
Microsoft is retiring this method in stages. Its Exchange team’s updated timeline of 27 January 2026 says nothing changes until December 2026; at the end of December 2026, Basic authentication for SMTP AUTH is turned off by default for existing tenants, and admins can still turn it on if needed. Tenants created after December 2026 won’t have it by default, and Microsoft will announce the final removal date in the second half of 2027. That replaced an earlier plan to start rejecting these sign-ins on 1 March 2026, which is why older articles give dates that have already passed. As of 30 November 2026 Microsoft had not published the exact day in December; in the comments under its post, a Microsoft staff member wrote on 19 November that the date would be announced soon.
Some tenants already get the error today. Microsoft’s Basic authentication deprecation page says it disabled SMTP AUTH in tenants where it wasn’t being used, and its page on enabling or disabling SMTP AUTH says that if security defaults are on, SMTP AUTH is already disabled. So a new app set up this year can fail on day one, while an old one keeps working until the default changes.
| SMTP error 535 5.7.139: what you see | Likely cause | Fix (step n) |
|---|---|---|
| Lead or quote emails from the website stopped, no error on the site | The form sends through smtp.office365.com with a password | Find the sender (step 1) |
| 535 5.7.139 “basic authentication is disabled” | SMTP AUTH is off for the mailbox or the tenant | Check the settings (step 2) |
| It worked yesterday, nothing changed on your side | The tenant default or a security setting changed | Check security defaults and policies (step 3) |
| A new app fails on the first test | SMTP AUTH was never on in this tenant | Check the settings (step 2) |
| The app offers “Sign in with Microsoft” or OAuth | The app can use modern sign-in | Switch the app to OAuth (step 4) |
| An automation tool sends the email | It can use Microsoft Graph instead of SMTP | Use the Outlook or Graph connector (step 5) |
| A scanner or old device can only do username and password | No OAuth support | Use a relay connector (step 6) |
| The error appeared after switching to OAuth | App permissions or mailbox permission missing | Check the app setup (step 4) |
Before you change anything in Microsoft 365
- List what sends email as your business. Website forms, CRM, booking and invoicing tools, scanners, alerts from automations and any script a developer left behind. Each one is a separate fix.
- Find out who controls the tenant. Most steps need a Microsoft 365 global admin or Exchange admin. If an IT provider manages it, send them this list rather than changing settings yourself.
- Don’t switch off security defaults to make an app work. It is the quickest way to get SMTP AUTH back and it also removes protections for every account. Fix the sender instead.
- Don’t use your own mailbox for system email. A shared or dedicated mailbox for each system means one password change or departure doesn’t stop your lead notifications.
How do I fix 535 5.7.139 and keep business email sending?
Step 1: Find every app that still uses Basic authentication
In the Exchange admin center, go to Reports, then Mail flow, and open the SMTP AUTH clients report. Microsoft’s description of the report says it lists each sender address with its authentication: Basic Auth (TlsAuthLogin) or Modern Auth (XOAUTH2). It shows the last 7 days by default and goes back up to 90 days, so widen the range to catch monthly jobs such as invoice runs. Every sender marked Basic Auth will stop working when the default changes, unless someone turns it back on.
Step 2: Check SMTP AUTH for the mailbox and the tenant
Microsoft has two switches, and the mailbox setting wins over the tenant one. For the whole organization, the setting is in the Exchange admin center under Settings, then Mail flow (“Turn off SMTP AUTH protocol for your organization”), or in PowerShell with Set-TransportConfig and the SmtpClientAuthenticationDisabled parameter. For one mailbox, open the Microsoft 365 admin center, go to Users, then Active users, select the user, open Mail, then Manage email apps, and look at Authenticated SMTP; the PowerShell equivalent is Set-CASMailbox with SmtpClientAuthenticationDisabled set to false. Microsoft notes that an authentication policy that blocks Basic authentication for SMTP still blocks the app even when both switches are on.
Step 3: Check security defaults and sign-in policies
If the switches look right and sign-in still fails, look at Microsoft Entra. Microsoft’s security defaults page says they block clients that use older mail protocols such as IMAP, SMTP or POP3, and Conditional Access policies can block legacy sign-ins in the same way. This is a sign that the app needs a modern sign-in method, not a reason to turn the protection off. Turning SMTP AUTH back on for one mailbox is a stopgap at best: Microsoft has said it will announce a final removal date, after which the switch won’t exist.
Step 4: Switch the app to OAuth where it offers it
Many form plugins, CRMs and help desks now have a “Microsoft 365” or “Sign in with Microsoft” option next to plain SMTP. Choose it, sign in with the sending mailbox and send a test. For software your developer wrote, Microsoft’s guide to authenticating SMTP with OAuth covers both ways: a signed-in user, or an app with no user that is registered in Microsoft Entra with the SMTP.SendAsApp permission, approved by an admin, and given access to the mailbox in Exchange. The guide warns that using the app registration’s object ID instead of the enterprise application’s causes an authentication failure, so check that first if the error moves to “535 5.7.3” after the switch.
Step 5: Send from automations through Microsoft Graph
If an n8n, Make or Zapier workflow sends your lead alerts through a generic SMTP or Send Email step, replace that step with the platform’s Microsoft Outlook connector, as long as it signs in with your Microsoft account rather than asking for a mailbox password. In n8n, for example, the Microsoft credentials support OAuth2 only, and the Outlook node sends through Microsoft Graph with the Mail.Send permission, so no SMTP sign-in is involved. After the change, run the workflow once with a test lead and check that the email arrives from the right mailbox. This is the kind of change our workflow automation work handles when one alert feeds several tools.
Step 6: Give devices that can’t do OAuth a relay connector
Scanners, printers and older line-of-business software often can’t do OAuth; commenters under Microsoft’s post report the same for many multifunction devices (community). Microsoft’s guide to sending email from a device or application lists the options. An SMTP relay through a connector needs no mailbox password, but it needs a static public IP address that isn’t shared, or a certificate; Microsoft says dynamic IP addresses aren’t supported. Direct send also needs no password, but it delivers only to recipients inside your own Microsoft 365, so it can’t email customers. If the device only sends scans to staff, direct send may be enough.
Step 7: Check the limits before you move bulk email
Microsoft’s device guide gives SMTP client submission limits of 10,000 recipients a day and 30 messages a minute, on port 587 (port 465 isn’t supported). A shop or CRM that sends newsletters or large invoice runs through one mailbox may hit those before any authentication problem. Marketing email belongs in an email platform built for it; keep Microsoft 365 for one-to-one and system messages.
Step 8: Test each sender and write down what changed
For each app, send a real test: submit the website form, create a test invoice, scan a page. Then open the SMTP AUTH clients report again a few days later and confirm the sender now shows Modern Auth or has disappeared from the list. Write down which mailbox each system uses and how it signs in, so the next person doesn’t re-enter a password into an app that no longer accepts one.
What these Microsoft 365 email fixes can’t do
- They can’t keep Basic authentication forever. Re-enabling it is allowed for now, and Microsoft has said a final removal date will follow.
- They can’t make an app support OAuth. If the vendor has no Microsoft 365 sign-in, the choice is a relay connector, a different sending service or a different app.
- They can’t recover emails that were never sent. Check the form’s entries, the CRM or the automation’s run history for leads that arrived while sending failed, and follow up on those by hand.
- They don’t cover personal Outlook.com accounts, which work differently from Microsoft 365 business mailboxes.
If your lead alerts run through Zapier and stopped after a sign-in change, Zap turned off by itself shows how to replay the missed runs once the connection works again.
We move lead alerts, quote and invoice emails and team notifications off password-based SMTP as part of our workflow automation service. If your Microsoft 365 email from a form or app has stopped, send us the error line and a list of what sends email for your business.
Frequently asked questions
What does 535 5.7.139 mean in Microsoft 365?
Microsoft 365 refused a username and password sign-in to its SMTP server, because Basic authentication for SMTP AUTH is turned off for that mailbox or the whole tenant. The password may be correct; the sign-in method is what is blocked.
When does Microsoft turn off SMTP Basic authentication?
Microsoft’s January 2026 timeline says it is turned off by default for existing tenants at the end of December 2026, and admins can still turn it back on. Microsoft plans to announce the final removal date in the second half of 2027. The exact December day hadn’t been published as of 30 November 2026.
Can I turn SMTP AUTH back on?
For now, yes. An admin can enable Authenticated SMTP for a mailbox in the Microsoft 365 admin center or with Set-CASMailbox, as long as security defaults or an authentication policy don’t block it. Treat it as temporary and move the app to OAuth or a relay.
How do I find which apps use SMTP Basic authentication?
Open the SMTP AUTH clients report in the Exchange admin center under Reports, then Mail flow. It lists each sender address with Basic Auth or Modern Auth and can cover up to 90 days.
What should a scanner or printer use instead?
If it can’t sign in with OAuth, use an SMTP relay through a connector, which needs a static public IP address or a certificate, or direct send if it only emails people inside your own Microsoft 365.
Sources
- Microsoft Exchange Team: Updated Exchange Online SMTP AUTH Basic Authentication deprecation timeline (27 Jan 2026, comments to Nov 2026)
- Microsoft Learn: Deprecation of Basic authentication in Exchange Online
- Microsoft Learn: Enable or disable SMTP AUTH in Exchange Online
- Microsoft Learn: SMTP AUTH clients report in the new Exchange admin center
- Microsoft Learn: Set up a multifunction device or application to send email using Microsoft 365
- Microsoft Learn: Authenticate an IMAP, POP or SMTP connection using OAuth
- Microsoft Learn: Security defaults in Microsoft Entra ID
- n8n Docs (vendor documentation): Microsoft credentials
- Microsoft Q&A (community): “Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled” (2024)