# SMTP 554: transaction failed

URL: https://iblockspam.com/smtp-errors/554
Last updated: 2026-10-09

Code: 554 (permanent failure, the message bounced)
Provider: Standard (RFC)

The receiving server refused the transaction permanently. At connection time it means no SMTP service; after the message, it's usually a policy or content refusal.

What the bounce says:

```
554 5.6.0 Email message is malformed. Not accepted.
```
Start of Gmail's text for a malformed message, one of its 554 replies.

RFC 5321 defines 554 as "Transaction failed (Or, in the case of a connection-opening response, 'No SMTP service here')". It's the broadest permanent failure code.

When a server answers a new connection with 554, it is refusing to talk to your server at all, usually because of the connecting IP address. RFC 7504 notes that 554 is the appropriate reply when a server rejects mail from particular hosts or addresses. When 554 comes after the message has been sent, the receiver has looked at it and refused it: spam scoring, malware, a malformed message, or failed authentication.

Gmail documents 554 5.6.0 for malformed messages and 554 5.4.6 for a message that exceeded 50 hops (a likely mail loop). Yahoo lists 554 among permanent errors, including messages that fail DMARC or DKIM checks and IPs listed by Spamhaus. The enhanced code and text, again, are where the reason lives.

## Common causes

- Your sending IP is on a blocklist the receiver uses.
- The message was classified as spam or contained malware.
- The message failed SPF, DKIM or DMARC checks.
- The message is malformed (bad headers or MIME structure).
- A mail loop pushed the message past the hop limit.

## How to fix it (sender)

- Check your sending IP with a blocklist checker and request removal where you're listed.
- Confirm SPF, DKIM and DMARC pass for your domain.
- If one message fails but others pass, look at its content, links and attachments.

## How to fix it (recipient or admin)

- If a wanted sender gets 554 from your server, check your filter logs and allow list.

**Q: Why do I get 554 as soon as my server connects?**
A 554 in place of the normal greeting means the receiver won't accept mail from your server's IP address at all. Check the IP against public blocklists and the receiver's own sender guidance.

**Q: Is 554 always spam-related?**
No. It also covers malformed messages and mail loops. The enhanced code and text explain the specific reason.

Sources:
- RFC 5321: Simple Mail Transfer Protocol (reply codes, section 4.2): https://www.rfc-editor.org/rfc/rfc5321#section-4.2
- RFC 7504: SMTP 521 and 556 Reply Codes: https://www.rfc-editor.org/rfc/rfc7504
- Gmail SMTP errors and codes (Google Workspace Admin Help): https://knowledge.workspace.google.com/admin/support/troubleshooting/gmail-smtp-errors-and-codes
- SMTP Error Codes (Yahoo Sender Hub): https://senders.yahooinc.com/smtp-error-codes/

---

Source: iBlockSpam, https://iblockspam.com/smtp-errors/554 (this is a Markdown copy; the HTML page is canonical). Quote with attribution and a link. Site index for AI assistants: https://iblockspam.com/llms.txt
