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
- Read the enhanced code and text. Paste the full reply into the bounce code lookup.
- 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.
- 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.
- Authentication or policy: publish SPF, DKIM and DMARC for your domain; many 554 policy blocks are unauthenticated mail. Our setup guide covers all three.
- Malformed message: make sure there is exactly one
From:header with a valid address, aMessage-ID, and valid MIME. Libraries get this right; hand-built messages often do not. - Mail loop: check forwarding rules on both sides.
Which server sent it
- Gmail uses 554 for
5.4.6mail loops,5.6.0malformed messages and5.7.0too 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.