554 5.7.1 means the receiving server permanently refused your message because you are not authorized to deliver it. That covers several unrelated causes, so the words after the code are what tell you what to fix.
554 5.7.1 <sam@example.org>: Relay access denied
554 5.7.1 Service unavailable; Client host [203.0.113.25] blocked using zen.spamhaus.org
554 5.7.1 <mailer@example.net>: Sender address rejected: Access denied
554 5.7.1 <unknown[203.0.113.25]>: Client host rejected: Access denied
What it means
554 is “Transaction failed” in RFC 5321. 5.7.1 is “Delivery not authorized, message refused” in RFC 3463, which notes it “can be the result of per-host or per-recipient filtering.” The combination is Postfix’s default for three things: relay denials (relay_domains_reject_code), DNS blocklist hits (maps_rbl_reject_code) and access table rejects (access_map_reject_code), all 554 by default. That is why it is so common.
Why it happens
| Text after the code | Cause |
|---|---|
| Relay access denied | You are not logged in, so the server will not send to outside domains |
| Service unavailable; Client host [IP] blocked using (list) | Your sending IP is on that DNS blocklist |
| Client host rejected: Access denied | The admin blocked your IP or host |
| Sender address rejected: Access denied | The admin blocked your address or domain |
| Wording about spam (it varies by filter) | A content filter scored your message as spam |
How to fix it
- Relay access denied: turn on SMTP authentication and use port 587 or 465. See relay access denied.
- Blocklisted IP: look up the IP on the named list. Find out why it was listed (a compromised account, an open relay, sending to bad lists), fix that, and request removal. Shared hosting IPs are often listed because of other customers; a reputable sending service avoids that. See our blacklist check guide.
- Access denied: the recipient’s organization blocks you. Contact them another way and ask why.
- Spam filter: authenticate with SPF, DKIM and DMARC (setup guide), remove link shorteners and suspicious attachments, and send only to people who opted in.
- Check reverse DNS. Many filters refuse IPs without a PTR record that matches forward DNS.
Which server sent it
- Postfix, and the many hosts that run it, sends the exact texts above by default.
- Gmail uses
550 5.7.1instead of 554 for its spam and policy blocks, for example “This message is likely unsolicited email”, per Google’s list. - Microsoft uses
550 5.7.1for “Delivery not authorized”, “Unable to relay” and “Client was not authenticated”, and Outlook.com’s IP blocks (S3150) are also550 5.7.1. - Yahoo uses 554 for permanent failures, including IPs listed by Spamhaus, failed DMARC or DKIM, and content policy blocks.
So the same enhanced code can mean different things at each provider; always read the text. A 554 5.7.1 from your own outgoing server (relay denied) is a setup problem on your side, while one from the recipient’s server (blocklist, access rule, spam) is about your reputation or content. The host name in the bounce tells you which.
Is it temporary?
No. 554 5.7.1 is permanent and your server will not retry it. Resending the same message from the same IP will fail the same way. The recipient’s address is almost always valid, so do not suppress it for this error: fix the block, then send a new message.
How Mailcandor handles it
Mailcandor delivers through Amazon SES, so a blocklisting of your own server’s IP does not affect mail you send through it, and its DNS check confirms SPF, DKIM and DMARC. When any message is refused, the deliverability coach explains the reply in plain English and hard bounces are suppressed automatically. Decode any reply with the free bounce code lookup, browse the error library, and see more free tools.