
A 554 5.7.1 bounce means the receiving mail server refused the message for a policy or security reason and will not accept it if you send it again unchanged. The code does not say which policy. The text after it does, and it usually points to one of three things: a relay the server will not perform, a blocklist entry for your sending IP address, or a local rule.
This guide shows how to read that text, why this number is so common, and when the fault is on the receiving side.
What does 554 5.7.1 mean?
It means "transaction failed" for the reason "delivery not authorized, message refused". The first number is the SMTP reply code and the second is the enhanced status code, and they come from two different standards.
SMTP is the protocol mail servers use to pass messages to each other. RFC 5321 defines 554 as "Transaction failed", or as "No SMTP service here" when it is the first thing a server says on connection. Section 4.3.2 of that RFC lists 554 as a reply at only two points: when the connection opens and in answer to the DATA command.
RFC 3463, published in January 2003, defines the enhanced part:
| Part | Value | Meaning in RFC 3463 |
|---|---|---|
| Class | 5 | Permanent failure, not likely to be resolved by resending the message in the current form |
| Subject | 7 | Security or policy status |
| Detail | 1 | Delivery not authorized, message refused: the sender is not authorized to send to the destination |
Mail servers use the pair far more loosely than the two RFCs describe. In practice it is a general "refused by policy" answer, and receivers attach it to relay denials, blocklist hits and content decisions alike.
Why do so many servers answer with 554?
Because it is the default refusal code in Postfix, one of the most widely deployed mail servers. Hosting companies, universities and corporate gateways that run it send 554 unless an admin changed the setting.
The Postfix configuration reference lists four separate parameters that default to 554. As of November 30, 2026:
| Postfix parameter | Default | When the server uses it |
|---|---|---|
relay_domains_reject_code |
554 | The request was rejected by the relay restriction, because the server does not handle mail for that destination |
maps_rbl_reject_code |
554 | The connecting client or sender is on a DNS blocklist the server checks |
access_map_reject_code |
554 | An admin's own access table says to reject the client, sender or recipient |
reject_code |
554 | A plain "reject" rule matched |
The reference sets the number for each case and does not print the sentence that follows it, so wording differs between servers. Next to maps_rbl_reject_code it also warns admins not to change the value without a complete understanding of RFC 5321.
This explains why the code says so little. Four unrelated decisions share one number, and only the text tells them apart.
Which wording did you get, and what does it point to?
The sentence after the code sorts nearly every bounce of this kind into one of three groups. Read it from the original bounce message, not from a summary screen in a sending tool.
| Wording in the bounce | What it means | Who has to act |
|---|---|---|
| Relay access denied, or unable to relay | You asked a server to pass on mail for a domain it does not serve, without logging in | The sender, in the mail client or application settings |
| Service unavailable; client host blocked using a named list | The server looked up your sending IP address on a blocklist and found it | Usually the sender or the sender's provider; sometimes the recipient's admin |
| Rejected due to local policy, or message refused | A rule or spam decision at the receiving organization | The sender for reputation and content; the recipient's admin for an allow rule |
Gandi, a mail host, documents the second form in its help page for this error. Its example begins "Service unavailable; Client host", followed by the blocked address in brackets. On a server that checks the Spamhaus list, the full line takes this shape:
554 5.7.1 Service unavailable; Client host [192.0.2.25] blocked using zen.spamhaus.org
The bracketed value is the address the receiving server saw. Gandi's page explains that this is the public IP address of the gateway the mail left from, which for a home or office connection is often the internet provider's address and not your mail service.
A relay denial has a different cause and a quick fix. It appears when a device, script or mail client submits mail to a server without signing in, or to the wrong server. Point the application at your own provider's outgoing server and turn on authentication.
Is a blocklist bounce always the sender's fault?
No. A bounce that names a Spamhaus list can come from a fault in the recipient's own mail server, and Spamhaus says so in plain words.
Spamhaus does not answer blocklist queries that arrive through public DNS resolvers. Its bounce help page for this case says the problem does not relate to your email setup and is with the recipient's email server configuration.
The mechanism is in the Spamhaus usage FAQ. As of November 30, 2026, a query through a public resolver gets the answer 127.255.255.254, which is an error code and not a listing. The FAQ adds that some mail servers mistakenly reject all mail because of that answer.
So check before you file anything. Look up the IP address from the bounce at check.spamhaus.org:
- If the address is listed, the bounce is accurate. Fix the cause the listing names, then request removal.
- If the address is not listed, the receiving server is misreading an error. Spamhaus advises calling the recipient so they can alert their mail admin, or resending after 24 hours.
For a real listing, Spamhaus describes this reply code as permanent. Its guide to handling bounced emails, published February 15, 2022, says of 554 that the server will not try to send the message again.
What do Gmail, Microsoft 365, Yahoo and iCloud document?
The four large mailbox providers treat this pair differently, and only some of them publish it. This is what each one's own pages show as of November 30, 2026.
| Provider | What is documented | Source |
|---|---|---|
| Gmail | Policy refusals are listed under 550 with enhanced code 5.7.1. The 554 entries we found are 5.4.6 for a mail loop, 5.6.0 for a malformed message and 5.7.0 for too many unauthenticated commands | Gmail SMTP errors and codes |
| Microsoft 365 | Bounces are listed by enhanced code. 5.7.1 appears with three texts: delivery not authorized, unable to relay, and client was not authenticated | Non-delivery reports in Exchange Online |
| Yahoo | 553 and 554 are its permanent errors. Causes named include an invalid address, a DMARC or DKIM failure, content that breaks policy and a Spamhaus listing | Yahoo SMTP error codes |
| iCloud Mail | No codes are listed. The page says rejections carry an SMTP error with the reason, and most include a URL | Postmaster information for iCloud Mail |
Apple's page, published February 25, 2025, does give a route for senders. After following its best practices and reviewing your logs, you can write to icloudadmin@apple.com with your domain, the IP addresses of the affected servers and the SMTP errors received.
Senders in Apple's own support forum report iCloud bounces that read "[CS01] Message rejected due to local policy" after this code. Apple does not publish what the bracketed tag means, so we do not guess at it.
Yahoo's page is clear on one point for all permanent errors. It says you should not retry a message that comes back with a 5xx error.
How do we trace it on a client domain?
We start from the full bounce text and the IP address inside it, because those two facts decide which of the three groups applies. Most of the work is ruling groups out in order.
- We collect the original bounce messages and sort them by receiving domain and by wording. One wording across many unrelated recipients points at the sender; one recipient domain alone points at that domain's rules.
- We identify the IP address in the bounce. If it belongs to an office line and not to the mail provider, an application or device is sending mail directly and needs to go through the provider.
- We check that address against the list the bounce names, on the list's own site, to tell a real listing from a misconfigured receiver.
- We check the sending domain's records with the SPF record checker and the DMARC checker, since a local policy refusal often follows an authentication failure. Our guide to a DMARC fail covers that path.
- We look at volume and complaints last. Our steps on how to stop emails going to spam apply once the records are clean.
On one engagement in our case studies, delivery issues in tested messages measured 21% before the work and 2.5% after it. That work was an audit of the business domains and every active sending service, followed by standard SPF, DKIM and DMARC settings.
To see what your own domain publishes today, run the free email deliverability test. It reads the SPF, DKIM and DMARC records in one pass.
Should you send the message again?
Not unchanged. RFC 5321 says that after a reply starting with 5 the sending system should not repeat the exact request, and RFC 3463 calls the failure permanent for the message in its current form.
Change the thing the text names, then send once. For a relay denial that is the server and login settings. For a real blocklist entry it is the cause of the listing and then a removal request, and for a local policy refusal it is authentication first and the recipient's admin second.
No fix here can promise delivery to the inbox. What it does is remove the stated reason for the refusal, and the next accepted message confirms it.
Drafted with AI assistance from our own records and client work, then reviewed and approved by Kunal Arora. See our editorial policy.