Relay Access Denied 554 5.7.1: A Consultant's Fix Guide

Struggling with the 'relay access denied 554 5.7.1' error? Our expert guide explains the causes and provides step-by-step fixes for M365, Exchange, and more.

Relay Access Denied 554 5.7.1: A Consultant's Fix Guide
Do not index
Do not index
A team launches a campaign that should drive demos, renewals, or candidate replies. Instead, the platform fills with hard bounces that say Relay Access Denied 554 5.7.1. That failure doesn't just block one send. It can interrupt outbound, suppress transactional mail, and push mailbox providers to question whether the sending setup is trustworthy at all.
Many teams waste days at this point. They treat the error like a random SMTP annoyance, toggle a few settings, retry, and keep damaging reputation with more failed attempts. That approach is sloppy. Relay denial is a policy rejection, and policy rejections demand diagnosis before action.
For deliverability teams, the core issue isn't only message failure. It's inbox placement after the fix. If Gmail, Outlook, or Yahoo see repeated hard bounces tied to bad routing, failed authentication, or untrusted infrastructure, future mail can suffer even after the original misconfiguration is corrected. Teams that need baseline context should review what email deliverability actually covers before touching production systems.
Table of Contents

Your Campaign Just Failed Why Relay Access Denied Is a Critical Stop Sign

Relay Access Denied 554 5.7.1 means the receiving or intermediary server has stopped the message and isn't going to retry it for later delivery. This is a hard stop, not a delay. Revenue emails, outbound sequences, support notifications, and recruiting follow-ups can all fail at once if the sending path isn't authorized.
That matters because this error sits at the intersection of infrastructure and reputation. Historically, relay denial existed to stop open relay abuse. Today, mailbox providers such as Gmail and Outlook still treat it as a sign that the sender's infrastructure isn't properly validated, and repeated hard bounces can damage sender reputation if the issue isn't fixed quickly, as explained in this review of Relay Access Denied and modern sender trust.

Why this error is more serious than teams assume

A rejected relay attempt tells a mailbox provider several things at once:
  • The sending system may be misconfigured: The client, app, or server isn't presenting valid credentials or an approved route.
  • The domain and IP may not be trusted: Even if the message is legitimate, the infrastructure can still look suspicious.
  • The bounce pattern can hurt future inbox placement: Hard bounces feed negative signals into filtering systems.

Immediate business consequences

Teams usually notice the commercial impact before they understand the protocol issue.
Failure area
What happens
Sales outreach
Sequences stop, replies disappear, pipeline slows
SaaS lifecycle mail
Onboarding, trial nudges, and renewal reminders miss the inbox
Support and account mail
Customers don't receive expected messages and trust drops
Brand reputation
Repeated rejected sends make the domain look poorly managed
The right response is to stop broad sending, isolate the affected mail stream, and verify authentication, relay permissions, and reputation before another retry batch goes out.

What This Error Code Actually Means and Why It Matters

notion image

The plain English definition

The most useful definition is simple. The SMTP error code 554 5.7.1 Relay Access Denied is a permanent rejection that occurs when a server refuses to forward a message because the sender lacks authorization or isn't allowed to relay through that server, according to Microsoft's explanation of 554 5.7.1 relay access denied.
The code breaks down into two parts:
  • 554: Transaction failure.
  • 5.7.1: A security or policy reason for rejection.
A relay is just an SMTP server passing mail onward. If that server doesn't recognize the sender as allowed, it blocks the message. That's the core of the error.

Why a permanent rejection changes the response

A lot of teams treat every SMTP issue the same way. That's a mistake. A temporary delivery problem uses a 4.x.x code. A 5.x.x rejection means the server has already made a final decision.
That changes remediation:
  1. Don't keep retrying blindly. The server won't suddenly change its mind.
  1. Don't start with copy or subject lines. This isn't a creative problem.
  1. Don't assume SPF or DKIM alone caused it. Relay denial starts with authorization and path validation.
For teams that need a broader reference on bounce code interpretation, Mailwarm has a useful guide on understanding SMTP errors that helps separate policy failures from temporary delivery issues.

A quick diagnostic checklist

Before editing production settings, check the path in order:
  • Sending application: Is the app using the correct SMTP host and authenticated account?
  • SMTP authentication: Is outgoing authentication enabled in the mail client or integration?
  • Authorized relay path: Is the sender allowed to send through that mail server for that domain?
  • Recipient environment: Did the rejection come from the outbound server or from the destination gateway?
This is why deliverability teams connect relay errors back to sender reputation, SPF, DKIM, DMARC, and domain alignment. Those controls don't all generate the same error, but they shape whether a sending path looks legitimate enough to be accepted.

A Step-by-Step Diagnostic The Four Root Causes

notion image
Your app sends a campaign at 9:00 AM. By 9:02, every message is bouncing with 554 5.7.1. One admin resets the password. Another edits SPF. A third whitelists an IP. None of that helps because no one has identified which class of failure they are dealing with.
Start with triage. You need to separate a basic sending-path misconfiguration from a reputation or policy block. Those problems can produce similar bounce language, but the fix path is completely different.

Root cause one SMTP authentication is broken

This is the first place to check because it fails fast and it fails often.
Inspect the exact system that generated the bounce. Do not validate a mailbox in Outlook and assume the CRM, billing app, support desk, or automation platform is using the same credentials or even the same SMTP host. Different tools often send through different paths with different auth methods.
Check these items:
  • Authenticated identity: The SMTP username must be valid and approved for the sender address in use.
  • Outgoing authentication setting: The client or integration must authenticate to the server.
  • Provider-specific login method: Google and Microsoft environments often require app passwords, OAuth, or tenant-approved SMTP auth.
  • SMTP endpoint: The application must point to the correct outbound server and port.
A few failure patterns show up repeatedly:
Scenario
Bad setup
Correct setup
CRM sending through Microsoft 365
Uses a mailbox address with disabled SMTP auth
Uses an approved mailbox or relay method with authentication enabled
App sending through Gmail
Uses a normal password where the provider requires an app password or modern auth
Uses the provider-approved auth method and correct SMTP server
Shared inbox workflow
Uses a From address that the authenticated account is not allowed to send as
Uses a sender identity that matches mailbox or connector policy
After that, verify the rest of the email authentication stack. SMTP login proves the app can present credentials. It does not prove the domain is aligned, signed correctly, or trusted by downstream systems.

Root cause two relay permissions and IP trust are wrong

A successful login does not grant relay rights.
Mail servers make a second decision after authentication. They check whether that account, connector, or source IP is allowed to send through that server for that sender and that destination. That is where internal apps, printers, older ticketing systems, and custom integrations break.
Review these controls:
  • Relay policy: Is that application permitted to send through this server at all?
  • Connector scope: Does the connector include the source IP, hostname, or authenticated principal?
  • Send-as permissions: Is the authenticated account allowed to use the visible From address?
  • Network trust rules: Is the sending IP in an approved range?
This distinction matters. Authentication proves identity. Relay policy decides whether the server will carry the message.
It also explains why one platform can work while another fails. A support tool may be approved on a connector while a custom app on a different IP is rejected. If you are adding outbound email to a workspace tool, document the relay method before launch. Teams building automations from Notion often miss this and should review how to send emails from Notion with the relay path in mind, not just the workflow logic.

Root cause three reputation or policy blocking is being mislabeled as relay denial

This is the diagnostic fork that gets mishandled.
Some 554 5.7.1 bounces are true configuration failures. Others are policy rejections from a downstream system that does not trust the sender, the IP, the domain, or the traffic pattern. If you treat a reputation block like a password problem, you waste hours changing settings that were never broken.
Look at the SMTP transcript and answer one question first: Which server issued the rejection?
If your own outbound server rejected the message before handoff, the problem is usually configuration, permissions, or route control. If the message left your system and the destination gateway rejected it, investigate reputation, filtering policy, blocklisting, volume spikes, and domain alignment.
Check the evidence in this order:
  • Rejecting host: Was the 554 issued by your relay, your provider, or the recipient domain?
  • Recent sending changes: New IP, sudden volume increase, cold outreach, or a tool added without warming and policy review.
  • Blocklist status: Check whether the sending IP or domain is listed with a blacklist checker.
  • Header alignment: Confirm the visible From domain aligns with SPF and DKIM results.
Experienced deliverability work proves invaluable. A relay error at the surface can hide a reputation problem underneath, and the transcript is what separates the two.

Root cause four routing and DNS are sending mail down the wrong path

Routing failures create the messiest cases because they look inconsistent.
One app sends successfully. Another gets denied. Internal recipients receive the message, but external domains reject it. Transactional mail works while campaign traffic fails. That pattern usually points to competing outbound routes, the wrong smart host, stale DNS records, or a sender trying to push mail through infrastructure that does not serve that domain.
Audit these areas:
  • Outbound server selection: Is each application using the correct relay for its mail stream?
  • Domain ownership and accepted domains: Does the server handle mail for that sender domain?
  • MX and internal routing logic: Are there split-domain or hybrid rules causing mail to take the wrong path?
  • Provider migration leftovers: Old connectors, legacy SMTP hosts, and retired IPs often remain in one forgotten integration.
Treat routing as an infrastructure problem, not an app problem. If the message is entering the wrong mail path, changing passwords or editing copy will not fix it.

How to Fix the 554 Relay Error on Common Platforms

notion image
Many administrators jump straight to SPF. That's usually the wrong first move. Relay Access Denied 554 5.7.1 is usually fixed by correcting the sending path, not by editing DNS first. DNS still matters for trust and inbox placement, but the immediate repair is usually in the client, connector, or relay policy.

Microsoft 365 and Exchange Online

For Microsoft 365, the two most common mistakes are disabled SMTP auth and an unapproved outbound route.
Recommended fix path:
  1. Check the mailbox or app setting for SMTP auth. If the sending workflow depends on authenticated SMTP, it must be enabled.
  1. Review the connector or relay method. The message must leave through a method the tenant permits.
  1. Validate the sender identity. The authenticated sender and visible from-address shouldn't conflict with tenant policy.
  1. Retest with a single controlled message. Don't resume bulk sending yet.
If Exchange Online Protection is using a blocklist or policy layer to reject the sender, the problem may be reputational rather than purely configurational. That's where transcript review matters.

Google Workspace and Gmail based sending

Google based setups break when teams rely on assumptions from old mail clients or legacy plugins.
What to correct:
  • Use the proper authenticated method: Older apps often fail because they don't meet current security expectations.
  • Match the account and sending identity: The authenticated account should logically match the sender path.
  • Retest from the exact tool that failed: A Gmail web inbox working normally doesn't prove a CRM integration is configured correctly.
Teams that are wiring operational workflows into workspace tools often benefit from examples like this guide on how to send emails from Notion, because it highlights how app-level sending workflows depend on correct authorization, not just a mailbox that exists.

Postfix Exchange and desktop mail clients

Self-managed infrastructure fails in more technical ways, but the correction principles are still straightforward.
Platform
What to inspect
What usually fixes it
Postfix
Relay restrictions and trusted network policy
Allow authenticated users and confirm the sender is permitted
Exchange Server
Send connectors and accepted relay paths
Make sure the connector scope matches the actual sender
Outlook
Outgoing server settings
Enable “My outgoing server requires authentication”
Thunderbird
SMTP account profile
Reattach the right credentials and approved SMTP server
For DNS trust after the relay path is repaired, a fast sanity check with an spf checker helps confirm the sending domain authorizes the infrastructure now in use.

A technical example of good versus bad alignment

Bad sending pattern
  • CRM sends through a mailbox provider it isn't authorized to use
  • From-address uses the company domain
  • SMTP auth is missing or stale
  • SPF doesn't include the actual sender
Good sending pattern
  • App sends through the intended provider
  • Outgoing auth is enabled
  • Sender identity aligns with the approved mailbox or connector
  • SPF, DKIM, and DMARC match the delivery path
The difference is trust. Good content won't compensate for a path the server refuses to honor.

From Reactive Fixes to Proactive Prevention

notion image
The best fix for relay denial is preventing it from ever reaching production. Teams that treat deliverability as routine infrastructure hygiene have fewer outages, stronger inbox placement, and less reputation damage when they add tools or change sending volume.

Lock down every sending path

Every system that can send email should be documented and reviewed:
  • Marketing platforms: Confirm approved domains and aligned authentication.
  • Sales tools: Verify the mailbox, route, and sender identity before launching sequences.
  • Support systems: Check notification flows after any credential or provider change.
  • Internal apps and forms: Audit SMTP settings instead of assuming the original developer got them right.
This discipline matters because mailbox providers evaluate the full sender profile. A weak path from one forgotten application can contaminate domain trust for the entire program.

Build a prevention checklist around trust

A serious prevention routine should include:
  • Mandatory authenticated SMTP for all senders
  • Regular blacklist reviews for IP and domain status
  • Periodic checks of relay permissions and app level credentials
  • Ongoing list hygiene to reduce avoidable hard bounces
  • Authentication validation across SPF, DKIM, and DMARC
Shortcuts here aren't efficient. They're expensive. Every unreviewed integration is a future outage waiting for a launch day.

Where authentication and warmup fit

SPF, DKIM, and DMARC don't directly authorize a relay in every case, but they absolutely affect whether the sending system looks trustworthy. A complete authentication setup should be checked routinely with a DKIM checker and a DMARC checker, especially after adding new platforms or changing routing.
Teams rolling out a new domain or IP should also follow a controlled email warmup guide. Warming doesn't fix a broken relay policy, but it does support reputation building once the infrastructure is corrected. That distinction matters. Configuration creates permission. Warmup builds trust.
A stable email program also benefits from periodic review of email design fundamentals, because layout choices, link patterns, and message structure influence engagement signals after the message clears infrastructure checks.

Frequently Asked Questions About the 554 Relay Error

What is Relay Access Denied 554 5.7.1

It is a permanent SMTP rejection. The receiving or relaying server refused to pass the message because the sending system was not authorized, the credentials failed, or the route violated relay policy. Treat it as a hard stop, not a delay that will clear on its own.

Does SPF DKIM or DMARC fix this error directly

Usually no. Relay access denied points to a permission or routing problem first, such as failed SMTP authentication, a blocked connector, an IP that is not allowed to relay, or a sender that is outside policy.
Authentication still matters. SPF, DKIM, and DMARC help the sender look legitimate after the message reaches the next hop. They do not replace relay authorization, and they do not override a server that has already decided the sender is not allowed to use that path.

How can a team tell whether this is configuration or reputation

Start with the rejection point. If the message is blocked by your own mail server, smart host, or application connector before handoff, you are looking at configuration. Check SMTP auth, relay permissions, allowed IPs, sender restrictions, and connector mapping.
If the message leaves your environment and a downstream filter or recipient gateway rejects it, reputation becomes a serious suspect. At that stage, review the SMTP transcript, bounce text, sending IP history, recent complaint spikes, and blacklist status. The key distinction is simple. Configuration failures stop mail from using the route. Reputation failures stop an otherwise working route from being trusted.

How long does it take to recover

Configuration fixes can take effect as soon as the correct setting is in place and the service has reloaded the policy. Reputation recovery takes longer because the block often remains until complaint patterns, bounce behavior, or listing issues are cleaned up and reviewed.
That difference matters operationally. A fast technical fix does not mean sending is safe to resume at full volume.

Should a team keep sending while troubleshooting

No.
Pause the affected stream, isolate the sending path, and test with a limited set of messages from the exact application and relay involved. Broad sending during diagnosis makes the problem harder to read and can worsen reputation if the issue is not just configuration.
Still facing deliverability issues? Get a free audit from Mailadept. When relay errors, inbox placement drops, or reputation problems start stacking up, a dedicated deliverability expert can isolate the actual failure point and fix the sending system before more revenue-critical email is lost.

Get expert insights on why your emails go to spam and how to consistently reach the inbox.

Fix Your Email Deliverability Before It Costs You Revenue

Get a Free Deliverability Audit

Written by

Thami Benjelloun
Thami Benjelloun

CEO Mailwarm, email deliverability expert.