clement

535 5.7.139: SMTP AUTH is disabled for the tenant or mailbox (Microsoft 365)

Microsoft 365 refused the SMTP login because authenticated SMTP (SMTP AUTH) is turned off for the organization or mailbox, or a sign-in policy blocked it.

Bounce type
Hard bounce (permanent)
What to do
Fix your setup, keep the contact
Returned by
Microsoft (Outlook.com, Microsoft 365)

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.

Microsoft
535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant.
Microsoft · seen in bounces, not in the provider's docs
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.

Microsoft · seen in bounces, not in the provider's docs
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

  1. In the Microsoft 365 admin center, go to Users > Active users, select the user, then Mail > Manage email apps, check Authenticated SMTP, and save.
  2. 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).
  3. 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.
  4. 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.
  5. For 'did not meet the criteria', check the Entra ID sign-in logs for the failed login. They name the policy that blocked it.
  6. 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.

FAQ

Is 535 5.7.139 a hard bounce or a soft bounce?

535 5.7.139 is a permanent failure (a hard bounce): the receiving server won't accept this message if you send it again unchanged. But the cause is not the recipient's address, so treat it differently from a 'user unknown' bounce.

Should I remove the contact after a 535 5.7.139 bounce?

No. Don't suppress anyone. Enable SMTP AUTH or switch to OAuth, then resend.

What does 5.7.139 mean in the error code?

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.

Can I fix 535 5.7.139 on a personal Outlook.com account?

Not with a setting. Consumer Outlook.com and Hotmail mailboxes have no admin center, so the Authenticated SMTP switch isn't available. Use a sending tool that connects to Outlook.com with OAuth, or send from a Microsoft 365 business mailbox where an admin can enable SMTP AUTH.

Related SMTP codes

See all SMTP error codes

Sources

Try Clement free for 14 days

Clement reads the bounces that land in your Gmail and SMTP inboxes and tells dead addresses apart from policy blocks: it suppresses the first across every campaign and keeps the contact on the second, so you don't have to decode bounces by hand.

Start free trial