# 535 5.7.3 Authentication unsuccessful: SMTP AUTH in Microsoft 365

> 535 5.7.3 Authentication unsuccessful from Microsoft 365 usually means SMTP AUTH is off for the mailbox or tenant. Find which switch blocks you and fix it.

- Published: 2026-11-20
- Author: Koltrix Team
- Category: Email API
- Source: https://koltrix.com/blog/microsoft-365-535-5-7-3-authentication-unsuccessful-smtp-auth-disabled

A "535 5.7.3 Authentication unsuccessful" reply from smtp.office365.com means Microsoft 365 refused the login your app or device offered over SMTP. The most common reason is that SMTP AUTH, the protocol for authenticated client submission, is switched off for that mailbox or for the whole organization. A wrong password, an MFA requirement, a blocked sign-in policy or a bad OAuth token produce the same text, so the fix is to check the layers in order.

This post gives that order, the exact settings and commands, and a note on the Basic authentication change Microsoft has scheduled for the end of 2026.

## What does 535 5.7.3 mean?

It means the server saw your authentication attempt and rejected it, so no mail was accepted. The code splits into two standard parts.

| Part | Meaning | Source |
|---|---|---|
| `535` | Authentication credentials invalid | [RFC 4954](https://www.rfc-editor.org/rfc/rfc4954) |
| `5.7.3` | Authentication unsuccessful, a security or policy status | [RFC 3463](https://www.rfc-editor.org/rfc/rfc3463) |

SMTP AUTH is the extension that lets a client log in before it submits a message, usually on port 587. Microsoft's description of it is in [Enable or disable SMTP AUTH in Exchange Online](https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission). Because the status is generic, the bounce text alone cannot tell you which layer refused you. A permanent 5xx reply is also not worth retrying unchanged.

## Which layer is blocking the login?

Work through these from the cheapest check to the most invasive. Stop at the first one that is wrong.

| Order | Check | What a failure looks like |
|---|---|---|
| 1 | The username is the full mailbox address and the password is current | Works in the web mailbox but not in the app, or the password was recently changed |
| 2 | SMTP AUTH is enabled for that mailbox | Mailbox setting is on "disabled" |
| 3 | SMTP AUTH is not disabled for the organization | Tenant setting is on and the mailbox has no override |
| 4 | Security defaults are off | Basic sign-in is blocked tenant-wide |
| 5 | The sign-in method fits the account | MFA is on but the app sends only a password |
| 6 | A sign-in or Conditional Access policy is not blocking legacy sign-in | The sign-in log shows a block |
| 7 | OAuth tokens, if used, are valid and carry the right scope | Token expired or issued for another resource |

## How do I check whether SMTP AUTH is enabled?

The mailbox setting wins over the organization setting. Microsoft documents both, and the mailbox value overrides the tenant value. Check the mailbox first:

```powershell
Get-CASMailbox -Identity sender@yourdomain.com | Format-List SmtpClientAuthenticationDisabled
```

Microsoft's reading of the result: `False` means enabled, `True` means disabled, and blank means the organization setting applies. Then check the organization:

```powershell
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
```

If the mailbox is the problem, enable it for just that account:

```powershell
Set-CASMailbox -Identity sender@yourdomain.com -SmtpClientAuthenticationDisabled $false
```

In the Microsoft 365 admin center the same switch is under Users, Active users, the user, Mail, Manage email apps, with a checkbox labeled Authenticated SMTP. Enabling it for one dedicated sending mailbox is safer than turning it on for the whole organization, which Microsoft itself recommends avoiding: its page says to disable SMTP AUTH organization-wide and enable it only for accounts that still need it.

## Why does it fail even when SMTP AUTH is on?

Two tenant-level controls can still block it, and both are easy to miss.

- **Security defaults.** Microsoft states that if security defaults are enabled, SMTP AUTH is already disabled in Exchange Online, and you must disable security defaults to use it. That is a tenant-wide trade-off, so a different sending method is often the better answer.
- **An authentication policy that disables Basic authentication for SMTP.** Microsoft notes that clients cannot use SMTP AUTH in that case even if you enable the settings above. The relevant page is [Disable Basic authentication in Exchange Online](https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/disable-basic-authentication-in-exchange-online).

Public support threads also report MFA as a cause: a password-only login for an account that requires a second factor fails with this same text. Per those threads, the usual remedies are an app password where the tenant allows them, or moving the app to OAuth. Treat these reports as community experience, not Microsoft guidance, and check what your tenant permits.

## What is changing with Basic authentication in 2026?

Microsoft has been retiring Basic authentication, meaning username and password, for SMTP AUTH client submission, and the dates have moved. On the Exchange team's [updated timeline](https://techcommunity.microsoft.com/blog/exchange/updated-exchange-online-smtp-auth-basic-authentication-deprecation-timeline/4489835), published in January 2026, at the time of writing:

- Basic authentication for SMTP AUTH stays unchanged until the end of December 2026.
- At the end of December 2026 it is disabled by default for existing tenants, and administrators can still enable it if needed.
- For new tenants it is unavailable by default, and OAuth is the supported method.
- Microsoft says it will announce a final removal date in the second half of 2027.

Older articles quote March and April 2026 dates. Those were superseded, so check the Exchange team page before planning around any date. The practical meaning: an app that logs in with a password works today but may start returning 535 5.7.3 after the default flips, with no change on your side.

## Should I switch to OAuth or change the sending path?

Microsoft says SMTP AUTH supports OAuth as well as Basic authentication, and describes the method in [Authenticate an IMAP, POP or SMTP connection using OAuth](https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth). If your sending code is your own, that is the durable fix for a Microsoft 365 mailbox. If it is an old device or script that cannot do OAuth, the choice is between keeping Basic authentication enabled for one mailbox, and moving the sending off the user mailbox.

For application mail, there is a reason to do the second. A person's Microsoft 365 mailbox is built for people, with sending limits and sign-in policies that apply to people. Transactional mail such as password resets and receipts fits a sending service better. [SMTP or API for sending email](/blog/smtp-or-api-for-sending-email) compares the two submission styles, and [Koltrix's transactional email API and SMTP relay](/mcp) are one option when you want your app to stop depending on a mailbox login. A related error with a different cause is [Gmail 535 5.7.8 username and password not accepted](/blog/gmail-smtp-535-5-7-8-username-and-password-not-accepted), and [550 5.7.64 TenantAttribution relay access denied](/blog/microsoft-365-550-5-7-64-tenantattribution-relay-access-denied) covers the case where Microsoft 365 accepts the login but refuses the relay.

## What should I collect before asking an admin for help?

- The full error line and the time of the failure in UTC.
- The host and port used, for example smtp.office365.com on 587 with STARTTLS.
- The mailbox address used as the username.
- Whether the same account can send from the web mailbox.
- Whether the app uses a password or an OAuth token.
- The result of the two `Get-` commands above.

Microsoft's admin center also has an SMTP AUTH Clients Submission report that shows whether Basic authentication or OAuth is being used to submit mail, according to Microsoft's deprecation guidance. It is the quickest way to find every app that will break when the default changes.

## Bottom line

- 535 5.7.3 is a refused login. Most often SMTP AUTH is off for the mailbox or organization, but a wrong password, MFA, security defaults or policy can cause it too.
- The mailbox setting overrides the organization setting. Check `Get-CASMailbox` first, then `Get-TransportConfig`.
- Enable SMTP AUTH for one dedicated mailbox rather than the whole tenant.
- Basic authentication for SMTP AUTH is scheduled to be off by default for existing tenants at the end of December 2026, so plan the move to OAuth or another sending path now.
- Application mail belongs on a sending service, not on a person's mailbox login.
