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 (
SmtpClientAuthenticationDisabledset toTrue) 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
-
Confirm the credentials. Sign in to Outlook on the web with the same account to rule out a wrong password.
-
Check SMTP AUTH for the mailbox (admin):
Get-CASMailbox -Identity app@example.com | Format-List SmtpClientAuthenticationDisabled Set-CASMailbox -Identity app@example.com -SmtpClientAuthenticationDisabled $falseFalsemeans enabled; blank means the organization setting applies. Check that withGet-TransportConfig | Format-List SmtpClientAuthenticationDisabled. -
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.
-
Fix OAuth setup: use the SMTP scope, grant the app permission for the mailbox, and use the mailbox address as the username.
-
Use TLS on port 587 (
smtp.office365.com). Microsoft says TLS is required to authenticate. -
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.57when a client connects tosmtp.office365.comwithout valid credentials, per Microsoft’s NDR reference. - Gmail uses
535 5.7.8 Username and Password not acceptedinstead. 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.