554 5.7.1 Relay Access Denied: What It Means and Fixes
What the 554 5.7.1 bounce means, how to tell relay access denied, blocklist and spam versions apart, and how to fix each one.

You send an email and it bounces with "554 5.7.1". Most of the time the next words are "Relay access denied". Other times the bounce talks about a blocklist or spam. The code is the same, but the cause is not.
This guide explains what the error means, how to tell its three common versions apart, and how to fix each one. Start by reading the full bounce text. It tells you where to look.
What 554 5.7.1 means#
The bounce has two parts. 554 is the SMTP reply code for "transaction failed". It is a permanent failure, so the server will not take the message on a retry. 5.7.1 is the enhanced status code. The 5.7 class covers security and policy. The .1 part means the server did not allow this delivery.
So in plain words: the receiving server refused the message on purpose. It was not a typo in the address or a full mailbox. The server checked a rule, and your message broke it. The standard that defines these codes is RFC 3463, if you want the formal wording.
Which rule did it break? That depends on the text after the code.
The three versions of the error#
1. "Relay access denied"#
554 5.7.1 user@example.com: Relay access denied
This is the most common version. It comes from servers like Postfix. A mail server only accepts mail for two reasons. Either it hosts the recipient's domain, or the sender has logged in and is allowed to send through it. "Relay" means passing mail on to some other domain.
When neither is true, the server refuses. It does not host the domain, and it does not know who you are. So it will not relay your message.
2. "Client host blocked using" a blocklist#
554 5.7.1 Service unavailable; Client host [203.0.113.10] blocked using zen.spamhaus.org
Here the server checked your sending IP against a DNS blocklist and found it. The name at the end tells you which list. Your message content did not matter. The server refused the connection based on the IP's reputation.
3. Rejected as spam or by policy#
Some providers use this code when their filters decide a message is spam, or when a rule blocks your domain. The text often says "rejected due to high probability of spam", "message refused" or "delivery not authorized". This is about reputation, content or a rule on the recipient's side.
How to fix relay access denied#
Work through these checks in order.
Check that your mail app logs in#
This is the top cause when you send from Outlook, Thunderbird, a phone or a website. Open your account's outgoing (SMTP) settings. Make sure "My outgoing server requires authentication" is on, and that it uses the same username and password as your inbox.
Also check the port and security. Most providers expect port 587 with STARTTLS, or port 465 with SSL. Port 25 often skips login, which leads straight to this bounce.
Check the recipient domain's MX records#
If the bounce comes back when you write to one domain, the problem may be on their side. Their MX records may point to a server that no longer hosts their mail. This often happens after a move to a new provider. The old server gets your message, no longer knows the domain, and refuses to relay.
Look up the domain's MX records with any DNS tool. If they point to an old host, tell the recipient through another channel. You cannot fix their DNS for them.
Check your own server's settings#
If you run the mail server, make sure it lists every domain it hosts. In Postfix, that means mydestination, virtual_mailbox_domains or relay_domains. A domain that is missing from those lists gets "Relay access denied" for every inbound message. The Postfix access control guide explains how these rules are checked.
Check forwarding and routing services#
Email forwarding services can return this error when the route is not set up yet. A common case: the forwarding rule exists, but the domain's MX records still point to the old host, or the destination address was never confirmed. Fix the route, wait for DNS to update, then test.
How to fix the blocklist version#
First, find out which list named your IP. The bounce says it. Then:
- Look up your IP on that list's own site. It will tell you why it was listed.
- Fix the cause. That might be a hacked account, an open relay, a script sending spam, or a run of bad addresses.
- Ask for removal through the list's own process.
- If you use a shared host or an email service, contact their support. They often own the IP.
Do not ask for removal before you fix the cause. You will be listed again.
How to fix the spam or policy version#
This version is about trust. Start with the basics:
- Authentication. Set up SPF, DKIM and DMARC for your sending domain. Our guide on 550 5.7.26 unauthenticated email walks through each record, and an SPF checker confirms the setup.
- Headers. Send a test and read the email headers to see what the receiver saw.
- List quality. A list with many bad addresses hurts your reputation fast. Verify emails before each campaign, and remove hard bounces at once.
- Volume. Ramp new domains slowly. A sudden spike looks like spam to filters.
- Content. Cut link shorteners, heavy images and pushy wording.
If one company keeps refusing you, the cause may be a rule on their side. Ask the recipient to allow your domain or IP.
554 5.7.1 vs similar errors#
| Code | What it usually means | Main fix |
|---|---|---|
| 554 5.7.1 | Relay refused, IP blocklisted, or blocked by policy | Log in to SMTP, delist, improve reputation |
| 550 5.7.1 | Refused by policy or reputation | See our SMTP error 5.7.1 guide |
| 550 5.7.26 | Failed SPF, DKIM or DMARC | Fix authentication |
| 550 5.1.1 | Mailbox does not exist | Remove or fix the address |
Our list of email bounce codes covers the rest.
A quick checklist#
- Read the full bounce text and note which version you have
- Turn on SMTP login in your mail app, on port 587 or 465
- Check the recipient domain's MX records
- List every hosted domain in your server's settings
- Look up your IP on the blocklist the bounce names
- Set up SPF, DKIM and DMARC
- Clean your list before the next send
FAQ#
What does 554 5.7.1 relay access denied mean?#
The receiving server does not host the recipient's domain and does not know you as a logged-in sender. So it refuses to pass your message on.
Is this a hard bounce?#
Yes. It is a permanent failure. But it is often caused by your settings, not by a bad address. Fix the cause before you remove the contact.
Why do I get relay access denied in Outlook?#
Usually because Outlook is not logging in to the outgoing server. Turn on authentication for the SMTP server and use port 587 or 465.
Can the recipient cause this error?#
Yes. If their MX records point to an old server, every sender gets this bounce. Only they can fix their DNS.
How long does a blocklist removal take?#
It depends on the list. Some remove an IP within hours once the cause is fixed. Others take longer. Fix the cause first, then ask.
Sending to a fresh list? Check it with the Tomba Email Verifier first, so bad addresses do not add to your bounce rate.
// start free
See who Tomba finds at any company
Type a company's domain to see its people, their roles and verified work emails, each with the pages it was found on. Free account, no card.
Free plan · No credit card required · GDPR & CCPA
// about the author