Skip to content

50% off annual plans with code until December 8See plans

554 5.7.0 Error: What It Means and How to Fix Each Cause

554 5.7.0 is a catch-all security bounce. Learn to read the code beside it and fix the Outlook, Gmail and spam filter versions of this permanent rejection.

Nov 23, 2026 5 min read 1,085 words
554 5.7.0 Error: What It Means and How to Fix Each Cause
554 5.7.0 message rejected bounce error
554 5.7.0 message rejected bounce error

Your email bounces with "554 5.7.0". Sometimes that is all the bounce says. Other times a second code follows it in angle brackets, or a short line such as "Too many unauthenticated commands".

The code alone tells you little. It is a catch-all for a security or policy problem. The good news: the text next to it nearly always names the real cause. This guide shows you how to read it and fix the three forms you are most likely to see.

What 554 5.7.0 means#

The bounce has two parts. 554 is the SMTP reply for a failed transaction. It is a permanent failure, so the server will not try again. 5.7.0 is the enhanced status code.

RFC 3463 defines the 5.7 group as security and policy status. The ".0" at the end means "other or undefined". In plain words, the server refused your mail for a security reason that none of the more exact codes fit. It may also hide the reason on purpose, so it doesn't help spammers.

That is why the rest of the bounce matters. Read the whole line, then match it to one of the cases below.

Case 1: Outlook shows a second code in brackets#

Mail sent from Outlook, Microsoft 365 or Outlook.com often bounces with a line like this:

Remote server returned '554 5.7.0 <#5.7.520 smtp;550 5.7.520 ...>'

Here the outer code is just a wrapper. The code inside the brackets is the one that counts. Fix that one, and the outer code goes away.

Common inner codes and where to look next:

Inner code What it usually means Next step
5.7.520 Forwarding to outside mailboxes is blocked See 550 5.7.520 access denied
5.7.23 The message failed an SPF check Fix the SPF record of the sending domain
5.7.350 The message was flagged as spam See 550 5.7.350 detected as spam
5.7.708 Microsoft blocked sending from the tenant Check for a hacked account, then contact Microsoft

Microsoft lists every code it uses in its Exchange Online NDR reference. Search that page for the inner code.

Sometimes the cause is on Microsoft's side. In January 2026, Outlook.com users saw this bounce with a 5.7.520 spam message on mail with PDF files. A Microsoft Q&A thread records that the Outlook team reverted the change that caused it. If many people report the same bounce on the same day, wait a few hours before you change your setup.

Case 2: Gmail says "Too many unauthenticated commands"#

Google's list of SMTP error messages includes this exact reply:

554 5.7.0 Too many unauthenticated commands

It means a client or script connected to Gmail's server and kept sending commands without signing in. Gmail then closed the session.

You will most often see it from a printer, a website form, a backup tool or a script that sends mail. The fix is on the sending side:

  1. Turn on sign-in. Make sure the app sends a user name and password, or uses OAuth if it supports it.
  2. Use the right port and TLS. Most apps should send on port 587 with STARTTLS. If you see a STARTTLS error instead, read our guide to 530 5.7.0 must issue a STARTTLS command first.
  3. Stop retry loops. A script that reconnects and retries in a tight loop can trip this limit on its own. Add a pause between tries.

Case 3: A bare code or "Blocked"#

Some providers send the code with no detail, or add a single word such as "Blocked" or "Rejected". This often comes from a spam filter at the receiving end. It can be their gateway, a filtering service, or the mail server itself.

Work through these checks:

  • Authentication. Your domain should pass SPF, DKIM and DMARC. A failure on any of them can trigger a policy block.
  • Blocklists. Check your sending IP and domain against the major blocklists.
  • Content. Short tests with only a link, URL shorteners, or odd file types draw extra checks.
  • List quality. Sending to many invalid addresses hurts your reputation. Clean the list before the next send.
  • Volume. A sudden jump in mail from a new domain or IP looks like spam. Ramp up slowly.

If you still can't find the cause, ask the recipient to check their filter logs. Only their admin can see why their system said no.

How to fix 554 5.7.0 step by step#

  1. Read the full bounce. Copy the diagnostic lines at the bottom.
  2. Find the real code. Look for a second code in brackets or a short reason after it.
  3. Match it to a case above. Each case points to a different fix.
  4. Fix one thing at a time. Then send a test to an outside mailbox you control.
  5. Check the headers. Look for "spf=pass", "dkim=pass" and "dmarc=pass" in the test message.

How it compares to similar codes#

Code What it usually means Who fixes it
554 5.7.0 General security or policy rejection Usually the sender
550 5.7.0 Local policy violation at the receiver Sender, sometimes receiver
554 5.7.1 Relay access denied or not authorized Sender's admin
530 5.7.0 Sign-in or STARTTLS required first Sender's app or admin

Our list of email bounce codes covers the rest.

Checklist#

  • Full bounce text copied, inner code found
  • Outlook form: inner code looked up in Microsoft's list
  • Gmail form: app signs in on port 587 with STARTTLS
  • SPF, DKIM and DMARC all pass
  • IP and domain checked against blocklists
  • Test message sent and headers read

FAQ#

What does 554 5.7.0 mean?#

It means the receiving server refused your message for a security or policy reason. The code itself is generic, so read the text next to it for the real cause.

Will the server try to send it again?#

No. A 554 is a permanent failure. Fix the cause, then send the message again yourself.

Why does Outlook show two codes?#

Outlook wraps the remote server's reply in its own code. The code inside the brackets is the specific one, so fix that one first.

Can the recipient fix it?#

Sometimes. If their spam filter blocked you, their admin can check the logs or allow your domain. Most other causes are on the sending side.

How do I stop it from coming back?#

Keep your authentication in order, send at a steady pace, and mail only valid addresses. The Tomba Email Verifier checks a list before you send, so bounces don't hurt your sender reputation.

// 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?