Errors

SMTP error 554: transaction failed

Short answer

SMTP error 554 is a permanent failure. RFC 5321 defines it as Transaction failed, or No SMTP service here when sent at connection time. The enhanced code after it gives the real reason: 554 5.7.1 is usually a relay or blocklist refusal, 554 5.7.0 can mean too many unauthenticated commands, 554 5.6.0 a malformed message. Fix the cause it names; do not retry the same message unchanged.

Last checked 16 November 2026

SMTP error 554 means the receiving server permanently refused your message. It is the most general permanent failure in SMTP, so the reason is always in the text and enhanced code that follow it. Read those, fix what they name, and only then resend.

554 Transaction failed
554 5.7.1 <user@example.com>: Relay access denied
554 5.7.1 Service unavailable; Client host [203.0.113.25] blocked using zen.spamhaus.org
554 5.7.0 Too many unauthenticated commands.
554 5.6.0 Email message is malformed. Not accepted.

What it means

RFC 5321 defines 554 as “Transaction failed (Or, in the case of a connection-opening response, ‘No SMTP service here’)”. The first digit 5 marks a permanent failure. The enhanced code from RFC 3463 narrows it: 5.7.x is security or policy, 5.6.x is message content, 5.4.x is routing, 5.1.x is the address.

Why it happens

  • Relaying refused (5.7.1). You sent to an outside domain through a server that does not know you. Postfix’s default reply is 554 5.7.1 <address>: Relay access denied.
  • Your IP is on a blocklist (5.7.1). Postfix’s default DNSBL reply names the list, for example Spamhaus.
  • Access rules (5.7.1). Postfix’s access tables default to 554 with Access denied.
  • Too many commands before login (5.7.0). Gmail’s reply when a client sends commands without authenticating.
  • Malformed message (5.6.0). Broken headers or MIME.
  • Mail loop (5.4.6). Gmail returns 554 5.4.6 Message exceeded 50 hops, this may show a mail loop.
  • Connection refused at greeting. A 554 banner means the server will not talk to you at all, usually an IP block.

How to fix it

  1. Read the enhanced code and text. Paste the full reply into the bounce code lookup.
  2. Relay access denied: authenticate to your SMTP server (port 587 with STARTTLS or 465 with TLS) before sending, or send through a server that hosts your domain or a relay service. See relay access denied.
  3. Blocklisted IP: look up the IP on the list named in the text, fix the cause (compromised account, open relay, bad list) and request removal. Use a provider with clean IPs if you cannot.
  4. Authentication or policy: publish SPF, DKIM and DMARC for your domain; many 554 policy blocks are unauthenticated mail. Our setup guide covers all three.
  5. Malformed message: make sure there is exactly one From: header with a valid address, a Message-ID, and valid MIME. Libraries get this right; hand-built messages often do not.
  6. Mail loop: check forwarding rules on both sides.

Which server sent it

  • Gmail uses 554 for 5.4.6 mail loops, 5.6.0 malformed messages and 5.7.0 too many unauthenticated commands, per Google’s list. Its spam and policy blocks use 550 instead.
  • Microsoft 365 mostly uses 550 with codes like 5.7.1 and 5.7.5xx; its NDRs show the remote server’s 554 when another system refused your mail.
  • Yahoo uses 553 and 554 for permanent failures: invalid addresses, failed DMARC or DKIM, content blocks and Spamhaus-listed IPs. Yahoo asks list managers to remove addresses that return 5xx errors.
  • Generic servers (Postfix, Exim) use 554 for relay denials, DNSBL hits and access rules.

Is it temporary?

No. A 554 is permanent and your sending server will not retry it. If the cause is an invalid address, suppress it. If the cause is your IP, setup or content, fix that and send a new message. See the SMTP error codes guide for the full 4xx vs 5xx picture.

How Mailcandor handles it

When a message sent through Mailcandor gets a 554, the deliverability coach explains it in plain English, the email.bounced webhook tells your app, and hard bounces are suppressed automatically. The free bounce code lookup decodes any reply, the error library covers each code, and the tools page has more free checks.

Questions

What does SMTP error 554 mean?

The receiving server refused the transaction for good. The code is generic, so the enhanced status code and text after it are what tell you why.

What does 554 5.7.1 mean?

Delivery not authorized. On Postfix servers it commonly means Relay access denied or a block on your IP from a DNS blocklist. See our 554 5.7.1 page.

Is 554 a hard bounce?

It is a permanent failure, but not always about the address. If the reason is policy, your IP or your content, the address may be fine once you fix that.

Why does Yahoo send 554 errors?

Yahoo uses 553 and 554 for permanent failures, including invalid addresses, failed DMARC or DKIM checks, policy content blocks and IPs listed by Spamhaus.

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.