What 535 5.7.139 means
Microsoft returns 535 5.7.139 when a client tries to log in to smtp.office365.com but authenticated SMTP submission (SMTP AUTH) isn't allowed for that account. The text after the code tells you which switch is off: 'SmtpClientAuthentication is disabled for the Tenant' means the organization-wide setting, and 'disabled for the Mailbox' means the per-mailbox setting.
A third form, 'the request did not meet the criteria to be authenticated successfully', shows up when a sign-in policy rejects the login even though SMTP AUTH may be on: security defaults, a conditional access policy, or a rule that blocks basic (password) authentication. Microsoft recommends keeping SMTP AUTH off for the organization and enabling it only on the mailboxes that need it, and it's always off while security defaults are enabled.
In every form, nothing was sent. The fix is in the Microsoft 365 tenant, not in your email copy or your list.
What the bounce looks like
The wording providers document for this code, plus forms that show up in real bounces. Your bounce may add an IP address, a session ID or a help link after it.
535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Mailbox. Visit https://aka.ms/smtp_auth_disabled for more information. The per-mailbox setting is off. Common on new Outlook.com mailboxes, which have no admin switch.
535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. A sign-in policy (security defaults, conditional access or an authentication policy) rejected the login.
Why cold emailers see 535 5.7.139
- SMTP AUTH disabled organization-wide ('Turn off SMTP AUTH protocol for your organization' in the Exchange admin center), with no per-mailbox override.
- SMTP AUTH disabled on the specific mailbox. The mailbox setting wins over the organization setting.
- Security defaults turned on, which keeps SMTP AUTH off no matter what the other settings say.
- An authentication policy or conditional access rule that blocks basic authentication for SMTP. This usually produces the 'did not meet the criteria' wording.
- A consumer Outlook.com or Hotmail account. Those have no admin setting to turn SMTP AUTH back on, so the only route is a tool that signs in with OAuth.
How to fix 535 5.7.139
- In the Microsoft 365 admin center, go to Users > Active users, select the user, then Mail > Manage email apps, check Authenticated SMTP, and save.
- Or in Exchange Online PowerShell, enable it for one mailbox: Set-CASMailbox -Identity you@yourdomain.com -SmtpClientAuthenticationDisabled $false. Check the result with Get-CASMailbox -Identity you@yourdomain.com | Format-List SmtpClientAuthenticationDisabled (False means enabled; blank means the organization setting applies).
- To change the organization-wide default instead, run Set-TransportConfig -SmtpClientAuthenticationDisabled $false. Microsoft recommends the per-mailbox override instead, so only sending inboxes have it.
- If security defaults are on, SMTP AUTH stays off regardless. The admin has to turn security defaults off (and replace them with conditional access), or you connect with OAuth instead of a password.
- For 'did not meet the criteria', check the Entra ID sign-in logs for the failed login. They name the policy that blocked it.
- Changes can take a while to apply. If the login still fails right after enabling Authenticated SMTP, wait and try again before changing anything else.
Retry or suppress?
Don't suppress anyone. Enable SMTP AUTH or switch to OAuth, then resend.
Reading the code
The basic code 535
means "Authentication credentials invalid" under RFC 5321. In 5.7.139, the 5 is the class (permanent failure) and the 7 is the subject (security or policy). The detail number 139 isn't in the RFC 3463 / IANA registry; it's specific to the provider, so the text after the code carries the meaning.
- Class 5
- Permanent failure
- Resending the same message won't work. Something about the message, the recipient or the sender has to change first.
- Subject 7
- Security or policy
- A security or policy decision: spam filtering, authentication, blocklists, permissions.
- Detail 5.7.139
- Provider-specific
Check the rest of your setup
Paste the headers of a message that did get through into the email header analyzer to confirm SPF, DKIM and DMARC pass, and check your domain with the SPF, DKIM & DMARC checker. The deliverability checklist covers the rest of a healthy sending setup.
Got a different bounce? Paste it into the SMTP error code lookup to decode it.