Bouncewise

Bouncewise › Guides › 554 5.7.1: message rejected — causes and fixes

Email delivery guide

554 5.7.1: message rejected — causes and fixes

By the Bouncewise team · Updated · 3 min read · How we check guides

Short answer

554 5.7.1 is a permanent policy rejection: the receiving server refused your message and will refuse it again if you resend it unchanged. 554 is the reply Postfix and many spam filters use by default for these refusals, so the usual texts are "Relay access denied" (that server does not take mail for the domain), "Service unavailable; Client host [...] blocked using ..." (the sending IP is on a block list) and "Access denied" (a local rule). Find which one, then fix the DNS, the listing or the rule.

  1. Find who rejected it The bounce names the remote host. A 554 5.7.1 from the recipient's server is their policy; one from your own server is a submission problem.
  2. Check the recipient's MX For Relay access denied, run dig +short MX example.com and confirm the host that rejected you is still meant to receive that domain's mail.
  3. Look up the listed IP For blocked using, check the IP from the bounce on the named list's site. If it is your provider's IP, send them the full bounce.
  4. Contact the recipient another way For Access denied and content filters, only their admin can allow your domain or IP.
  5. Clear suppressions after the fix Reactivate addresses that were suppressed because of the block, and send once to confirm.

554 5.7.1 vs 550 5.7.1

The enhanced code is the same: RFC 3463's Delivery not authorized, message refused. The basic code differs. RFC 5321 gives 554 as Transaction failed and 550 as mailbox unavailable, including commands rejected for policy reasons. Both are permanent.

In practice the 554 tells you about the software. Postfix's defaults are 554 for relay_domains_reject_code (relay refused), maps_rbl_reject_code (block list hit) and access_map_reject_code (an admin's reject rule). Exchange and Gmail use 550 for 5.7.1; Gmail's published error list has no 554 5.7.1 at all. So a 554 5.7.1 nearly always comes from a self-run mail server or a filtering gateway: smaller companies, universities, hosting providers.

Yahoo is the big exception to keep in mind: it returns 553 or 554 for permanent problems, including an invalid address, failed DMARC or DKIM checks, policy reasons and a sending IP listed by Spamhaus.

Bounce detail showing a 554 5.7.1 rejection with the remote server's relay or block list text
The remote host's text says which policy refused the message.

The variants and what each means

The first three are Postfix's own default texts; filters built on Postfix keep them.

TextMeaningWho fixes it
554 5.7.1 <[email protected]>: Relay access deniedThe server you reached is not configured to receive mail for that domain. Usually the recipient's MX record points at a server that no longer hosts the domain, or your own app is submitting through a server without logging in.Recipient's DNS or mail admin; or you, if it is your submission server
554 5.7.1 Service unavailable; Client host [203.0.113.5] blocked using zen.spamhaus.orgThe sending IP is on the DNS block list named at the end. The list's own site explains why and how to request removal.Owner of the sending IP
554 5.7.1 <[email protected]>: Recipient address rejected: Access deniedAn admin's access rule rejects this recipient (or, with Sender address rejected or Client host rejected, your sender address or your server). Often a deliberate block.Recipient's admin
Vendor texts about spam, viruses or message sizeCommercial filters write their own wording after 554 5.7.1. The words name the filter that fired.You, if the content tripped it; otherwise their admin

Do not confuse the third row with Microsoft's 550 5.4.1 Recipient address rejected: Access denied, which means the mailbox does not exist.

Causes, most common first

  1. Stale MX after a migration. A company moves its mail, but its MX (or a backup MX) still points at the old Postfix box, which now answers Relay access denied for every address at that domain.
  2. A block-listed sending IP. Your own server's IP, or a shared IP at your provider that picked up a listing. Every recipient behind that filter fails, usually across several small domains that use the same list.
  3. A deliberate access rule. After complaints, an admin rejects your domain or IP outright.
  4. A content filter. Spam score, a link domain or an attachment type.
  5. Your own relay. If the rejection came from your own SMTP server when your app submitted the message, you are relaying without authenticating. Use SMTP AUTH on the submission port your server or provider documents.

What your provider does with it

Nothing more: a 5xx is not retried. The label depends on the provider. Postmark has a Blocked type described as Blocked from this ISP due to content or blacklisting; SendGrid records bounce or blocked with a bounce_classification such as Reputation or Content; Mailgun records a permanent failed event. If the address was suppressed because of a block, the mailbox is still fine: remove the suppression once the block is lifted, knowing it resumes sending to that person.

Questions

What does 554 5.7.1 relay access denied mean?

The server you delivered to does not accept mail for that domain. If you send through a provider, the recipient's MX record is usually wrong; if your app submits through your own server, log in with SMTP AUTH.

What does 554 5.7.1 service unavailable mean?

Usually the receiving server found your sending IP on a DNS block list, which the rest of the line names. Removal goes through that list after the cause is fixed.

Is 554 5.7.1 a hard bounce?

It is permanent and will not be retried, but it is a policy refusal, not a missing mailbox. Fix the block rather than deleting the address.

I sent from Gmail and got 554 5.7.1. Whose problem is it?

The recipient's server. Gmail's own error list has no 554 5.7.1, so the refusal came from the other side's server or filter, quoted in the bounce Gmail sent you.

Sources