Errors

535 5.7.3 Authentication unsuccessful in Microsoft 365

Short answer

535 5.7.3 Authentication unsuccessful is the reply Microsoft 365 (smtp.office365.com) gives when it rejects an SMTP AUTH login. Causes include a wrong password, multifactor or security defaults blocking basic authentication, a mailbox with SMTP AUTH disabled, and OAuth tokens for the wrong app or user. 535 5.7.139 is the variant for when the organization's configuration does not allow the request. An admin usually has to change a setting.

Last checked 16 November 2026

535 5.7.3 means Microsoft 365 refused your SMTP login on smtp.office365.com. The password or token you sent was not accepted for SMTP AUTH, or a policy in the tenant blocks the method you used. Unlike Gmail’s version, this one often needs an admin to fix a setting.

535 5.7.3 Authentication unsuccessful
535 5.7.139 Authentication unsuccessful, the organization configuration doesn't allow this authentication request.

Both lines are listed by Microsoft in its high volume email troubleshooting page.

What it means

535 is the SMTP AUTH failure reply from RFC 4954, where the standard enhanced code is 5.7.8. Microsoft uses its own enhanced codes: 5.7.3 for a failed login and 5.7.139 when the organization’s configuration does not allow the request. In RFC 3463, X.7.3 means “Security conversion required but not possible”, so this is a case where Microsoft’s meaning differs from the registry.

Why it happens

  • Wrong password, or a password changed since the device or app was set up.
  • Basic authentication blocked. Microsoft’s SMTP AUTH article says that if your authentication policy disables basic authentication for SMTP, clients cannot use SMTP AUTH even with it enabled. Security defaults have the same effect.
  • SMTP AUTH disabled for the organization (SmtpClientAuthenticationDisabled set to True) or for the mailbox. This usually gives 5.7.139.
  • Multifactor authentication on the account, which a plain password login cannot satisfy.
  • OAuth problems: the token was issued for the wrong app, scope or user, or the app lacks permission to send as the mailbox.
  • No license or mailbox. Microsoft requires the credentials of a user with an Exchange Online mailbox.

How to fix it

  1. Confirm the credentials. Sign in to Outlook on the web with the same account to rule out a wrong password.

  2. Check SMTP AUTH for the mailbox (admin):

    Get-CASMailbox -Identity app@example.com | Format-List SmtpClientAuthenticationDisabled
    Set-CASMailbox -Identity app@example.com -SmtpClientAuthenticationDisabled $false

    False means enabled; blank means the organization setting applies. Check that with Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled.

  3. Check what blocks basic auth. Security defaults or authentication policies will still block a password login. Use OAuth for SMTP AUTH, or exclude this mailbox only if your security policy allows it.

  4. Fix OAuth setup: use the SMTP scope, grant the app permission for the mailbox, and use the mailbox address as the username.

  5. Use TLS on port 587 (smtp.office365.com). Microsoft says TLS is required to authenticate.

  6. For printers and apps, consider direct send or a connector, or move app email to a provider with API keys. See printer and scanner SMTP.

Which server sent it

  • Microsoft 365 and Exchange Online send 535 5.7.3 and 535 5.7.139. Related: 5.7.57 when a client connects to smtp.office365.com without valid credentials, per Microsoft’s NDR reference.
  • Gmail uses 535 5.7.8 Username and Password not accepted instead. See 535 5.7.8.
  • Yahoo returns its own 535 text for failed logins.
  • Other servers use the RFC code, 535 5.7.8.

Is it temporary?

No. It is a 5xx reply, so the same login fails until the password, policy or token changes. Repeated failures can also trip account protection. Fix the cause, then test once.

How Mailcandor handles it

Mailcandor’s SMTP relay at smtp.mailcandor.com takes the username mailcandor and an API key as the password on 465 or 587, so app email does not depend on a Microsoft 365 mailbox, MFA or tenant policy. When a message bounces, the deliverability coach explains it in plain English and hard bounces are suppressed automatically. Decode any reply with the free bounce code lookup, browse the error library, set up your domain with our SPF, DKIM and DMARC guide, and see more free tools.

Questions

What does 535 5.7.3 Authentication unsuccessful mean?

Microsoft 365 refused your SMTP login. The username, password or OAuth token was not accepted for SMTP AUTH on smtp.office365.com.

What is the difference between 535 5.7.3 and 535 5.7.139?

5.7.3 is a failed login. 5.7.139 adds 'the organization configuration doesn't allow this authentication request', which points at a tenant or mailbox setting, such as SMTP AUTH disabled or security defaults.

How do I enable SMTP AUTH for a Microsoft 365 mailbox?

An admin runs Set-CASMailbox -Identity user@example.com -SmtpClientAuthenticationDisabled $false in Exchange Online PowerShell, or turns on Authenticated SMTP for the mailbox in the admin center.

Does 535 5.7.3 happen with OAuth too?

Yes. Tokens for the wrong scope, app or user, or for an app without permission to send as that mailbox, are refused with this code.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.