Skip to content

535 5.7.3 Authentication Unsuccessful: How to Fix It

What the 535 5.7.3 authentication unsuccessful error from Microsoft 365 means, why the SMTP sign-in fails with a good password, and how to fix it.

Nov 20, 2026 5 min read 1,138 words
535 5.7.3 Authentication Unsuccessful: How to Fix It
535 5.7.3 authentication unsuccessful error from Microsoft 365
535 5.7.3 authentication unsuccessful error from Microsoft 365

Your app, printer or script tries to send mail through Microsoft 365 and stops with "535 5.7.3 Authentication unsuccessful". The password looks right. The server name looks right. Still, nothing goes out.

This guide explains what the error means, the five common causes, and how to fix each one as a user or as an admin.

What 535 5.7.3 means#

The error has two parts. 535 is the SMTP reply for a failed login. The server heard your user name and password (or token) and said no. 5.7.3 is the enhanced status code. The 5 means the failure is permanent for this try, and the 7 points to a security or policy reason.

You see this error when a device or app signs in to smtp.office365.com to send mail. Microsoft calls this client SMTP submission, or SMTP AUTH. Outlook, Outlook on the web and the phone apps don't use it. Printers, scanners, websites, CRMs and scripts do.

So the problem is not the person you are writing to. Nothing has left your side yet. The sign-in itself failed.

Why Microsoft 365 rejects the sign-in#

Microsoft gives several reasons a sign-in can fail even with a good password. These are the ones we see most.

  1. SMTP AUTH is off for the whole tenant. Microsoft recommends turning SMTP AUTH off and enabling it only for the mailboxes that need it. Microsoft also turned it off in tenants that weren't using it.
  2. SMTP AUTH is off for this mailbox. A per-mailbox switch, "Authenticated SMTP", overrides the tenant setting.
  3. Security defaults are on. Microsoft says that when security defaults are on, SMTP AUTH is already off.
  4. Basic sign-in is blocked. An authentication policy can block basic auth for SMTP. Then a user name and password fail even if SMTP AUTH is on.
  5. Wrong details. A typo, an expired password, or a sign-in that needs a second factor the app can't give.

A close cousin, 535 5.7.139, often names the cause in its text, for example that SMTP client sign-in is disabled for the tenant.

Is it the same as 535 5.7.8?#

No, but they are related. Our guide to 535 5.7.8 username and password not accepted covers Gmail and Google Workspace. Both codes mean a failed SMTP login. The fixes differ because Google and Microsoft use different settings.

How to fix 535 5.7.3#

Work through these steps in order. Most fixes take a few minutes.

Step 1: Check the basic settings#

Microsoft's guide to sending mail from a device or app lists the values to use:

Setting Value
Server smtp.office365.com
Port 587 (recommended) or 25
Encryption STARTTLS, with TLS 1.2 or 1.3
User name The full email address of the mailbox
Password That mailbox's password

Use the server name, not an IP address. If your app only offers port 465, it does not support what Microsoft needs. If you see "must issue a STARTTLS command first" instead, see our fix for 530 5.7.0.

Step 2: Turn on Authenticated SMTP for the mailbox#

In the Microsoft 365 admin center, go to Users, then Active users. Pick the user, open Mail, then Manage email apps. Tick "Authenticated SMTP" and save.

In PowerShell, the same change looks like this:

Set-CASMailbox -Identity printer@contoso.com -SmtpClientAuthenticationDisabled $false

The mailbox setting wins over the tenant setting. That lets you keep SMTP AUTH off for everyone else.

Step 3: Check security defaults and auth policies#

If security defaults are on in Microsoft Entra ID, SMTP AUTH stays off. Microsoft says you must turn security defaults off to use it, or move the app to another way of sending.

Also check your authentication policies. If one blocks basic auth for SMTP, a password sign-in fails no matter what the mailbox says.

Step 4: Move to OAuth where you can#

Microsoft has announced plans to retire basic auth for SMTP AUTH. A fix that uses a password may stop working later. The better path is OAuth 2.0.

With OAuth, check three things:

  • The scope. A delegated token for SMTP needs https://outlook.office.com/SMTP.Send. An app-only token needs the SMTP.SendAsApp permission.
  • The user name. It must match the mailbox the token is for.
  • The switch. Authenticated SMTP must still be on for that mailbox. OAuth does not skip it.

Step 5: Test, then send#

Send one test message before you reconnect the app. A quick SMTP test shows the exact reply from the server, so you know which step failed.

Fixes for common setups#

  • Printers and scanners. Use a shared mailbox or a licensed user just for the device. Turn on Authenticated SMTP for that box only.
  • Websites and WordPress plugins. Pick a plugin that supports Microsoft OAuth. Password sign-in may not last.
  • CRMs and outreach tools. Connect through the tool's Microsoft sign-in button. It handles OAuth for you.
  • Sending as another address. The sign-in account needs Send As rights on that mailbox. Without them, Microsoft rejects the message with a 5.7.60 error.

How it compares to similar codes#

Code What it usually means Who fixes it
535 5.7.3 Microsoft 365 refused the SMTP sign-in Admin or user
535 5.7.139 SMTP AUTH is off, often named in the text Admin
535 5.7.8 Gmail refused the user name or password User
530 5.7.0 The app did not start TLS first User

Once mail flows again, a hard bounce means something else. Our list of email bounce codes helps you read the next error.

SMTP Sign-In Checklist#

  • Server smtp.office365.com, port 587, STARTTLS on
  • Full email address as the user name
  • Authenticated SMTP ticked for the mailbox
  • Security defaults and auth policies checked
  • OAuth scope and user name match, if you use OAuth
  • Send As rights in place when sending as another address

FAQ#

What does 535 5.7.3 mean?#

It means Microsoft 365 refused the SMTP sign-in from your app or device. The mail never left your side.

Why do I get it with the right password?#

Most often SMTP AUTH is off for the tenant or the mailbox, or security defaults block it. A correct password can't get past those settings.

Does OAuth fix the error?#

It can. OAuth avoids basic auth, which Microsoft plans to retire. You still need Authenticated SMTP on for the mailbox and the right scope in the token.

Is SMTP AUTH safe to turn on?#

Turn it on only for the mailboxes that need it. Microsoft recommends keeping it off for the rest of the tenant.

Will my emails be sent later?#

No. A 535 is not a delay. The app must sign in again after you fix the cause.

Once your app can send again, make sure the list is clean too. Check it with the Tomba Email Verifier before the next send.

// start free

See who Tomba finds at any company

Type a company's domain to see its people, their roles and verified work emails, each with the pages it was found on. Free account, no card.

Free plan · No credit card required · GDPR & CCPA

Share
0 clapsEnjoyed it? Give a clap.
AU

// about the author

Tomba Editorial Team

Was this helpful?