Skip to main content
Relay Access Denied: Find What’s Blocking Your Email and Fix It
Email Deliverability

Relay Access Denied: Find What’s Blocking Your Email and Fix It

Relay access denied means a mail server refused to forward your email. Find the rejecting server, then fix SMTP permissions or routing step by step.

Brain Lucas
Brain Lucas
Author

Relay access denied means a mail server refused to forward your email to the requested destination. Find the server that returned the error before changing settings.

Your outgoing server may require authentication or relay permission. A server on the recipient’s delivery route may need its domain-routing configuration corrected.

The error alone does not establish whether the sender or recipient must fix it.

Save the complete bounce, including the rejecting hostname, failed recipient, and diagnostic text.

Then follow the troubleshooting path below.

Find Which Server Rejected Your Email

Open the bounce’s technical details or your application’s sending log. Look for wording such as “Remote server returned,” “host … said,” or Diagnostic-Code.

This illustrative example shows a rejection reported by the sender’s server. It is not a live test result.

Reporting-MTA: dns; outbound.sender.example

Final-Recipient: rfc822; person@recipient.example
Action: failed
Status: 5.7.1
Remote-MTA: dns; gateway.recipient.example
Diagnostic-Code: smtp; 554 5.7.1 Relay access denied

Field

Meaning

Reporting-MTA

The server reporting the delivery attempt

Final-Recipient

The address whose delivery failed

Remote-MTA

The remote server that returned the failure

Diagnostic-Code

The complete rejection text

In this example, investigate the response from gateway.recipient.example. The sender’s server is reporting that response.

RFC 3464 distinguishes the reporting server from the remote server that supplied the diagnostic. This distinction helps prevent troubleshooting the wrong system.

If the hostname is missing or unfamiliar, send the complete report to your provider. Ask which server issued the refusal and who operates it.

For help reading other bounce details, see how to interpret a 550 permanent failure.

Match Your Symptoms to the Right Troubleshooting Path

These clues indicate where to investigate first. They do not prove the cause.

What happens

First check

Responsible person

One application fails; webmail works

Application SMTP settings and authentication

App owner or sending provider

Internal messages work; external messages fail

Permission to relay externally

Outgoing server administrator

Only one recipient domain fails

Rejecting host and domain-specific route

Sending administrator, then recipient administrator if needed

Incoming email fails after migration

MX destination and receiving-domain settings

Recipient’s email and DNS administrators

Failure starts after a network change

Public sending IP against relay permissions

Network or email administrator

Microsoft 365 returns 5.7.64 TenantAttribution

Connector identity match

Microsoft 365 administrator

Compare one failed message with a working example. Keep the sender, recipient, application, and route clear so the comparison is useful.

Fix Outgoing SMTP Authentication and Relay Permissions

Use this path when your application’s outgoing server refuses to forward the message.

Check the SMTP Hostname

Compare the configured outgoing server with your email provider’s current instructions.

An application can receive mail successfully while using incorrect outgoing settings. Incoming and outgoing services have separate configurations.

Use the submission service intended for your account. Do not replace it with the recipient domain’s MX server.

A server that receives mail for its own domains does not necessarily allow your application to relay through it.

Match the Port and Encryption Mode

Check the hostname, port, and TLS mode together.

Use the combination documented by your provider. Changing ports without checking the required encryption mode can introduce another problem.

Reaching the server does not establish that it authenticated your connection or authorized external delivery.

Confirm How the Service Authorizes Sending

A relay may identify authorized connections through an account, public IP address, certificate, or combination of controls.

For account-based submission, check whether authentication actually succeeds. Confirm that the application supports the provider’s required authentication method.

For IP-based relay, compare the public source IP seen in the server’s logs with the allowlist. A hosting move or network change can alter that address.

For certificate-based relay, have the administrator verify the identity presented by the submitting server.

Check the Sender Address

Compare these three values:

  • The authenticated account.

  • The visible From address.

  • The SMTP envelope sender used for delivery and bounce handling.

A provider may restrict which senders an account or connection can use.

If a CRM or website sends from an unauthorized address, configure a permitted sender or ask the administrator to approve the intended setup.

Investigate Internal-Only Success

When internal email works but external email fails, ask:

“Is this connection authorized to relay to external domains?”

A server can accept local recipients while refusing external destinations. Postfix’s relay policy, for example, distinguishes trusted clients, authenticated clients, and authorized destination domains.

Check Recipient Routing After a Migration

Follow this path when the rejecting server belongs to a receiving gateway, the problem affects one domain, or incoming mail stopped after a provider change.

Have the administrators compare the intended route with the host named in the failure.

Check whether:

  • Public MX records point to the intended receiving service.

  • A custom route bypasses those MX records.

  • The destination server recognizes the recipient domain.

  • A security gateway still forwards to an old provider.

  • A connector still expects a previous sending IP or certificate.

For example, a business may move its mailboxes while an old gateway remains in the delivery path.

That gateway may refuse mail if it no longer has the correct domain or downstream route.

MX records direct incoming delivery. They do not grant permission to use an outgoing relay.

If you cannot access the receiving system, contact the recipient through another channel. Give their administrator the rejecting hostname and complete diagnostic.

Fix Relay Access Denied in Outlook, Gmail, or Thunderbird

The application showing the bounce is not necessarily the system that rejected delivery.

Where you see the error

What to check

Outlook with a manually configured mail account

Provider-specific outgoing server, port, encryption, and authentication

Thunderbird

The account’s selected outgoing SMTP server and authentication settings

Gmail displaying a bounce

The quoted remote-server response and rejecting hostname

A CRM or website

Its configured relay, sender identity, and connection authorization

Microsoft recommends obtaining account-specific server settings from the email provider. For Microsoft 365 work accounts, involve the administrator where appropriate.

In Thunderbird, outgoing servers are managed under Account Settings → Outgoing Server (SMTP). Compare the selected configuration with your provider’s instructions.

Mozilla’s manual account configuration guide explains these settings.

If Gmail reports that a remote server returned554 5.7.1 relay access denied, investigate that remote host. Changing your Google password will not repair another server’s routing configuration.

Provider-Specific Checks

Microsoft 365: 550 5.7.64 TenantAttribution

For 550 5.7.64 TenantAttribution; Relay Access Deniedcheck the connector against the actual submitting server.

Microsoft documents IP-address and certificate mismatches as causes. A network change can alter the sending IP. A renewed certificate can introduce a different certificate name.

Have the administrator compare both identities with the configured inbound connector.

Follow Microsoft’s troubleshooting procedure for the appropriate connector or hybrid configuration update.

Google Workspace SMTP Relay

For applications usingsmtp-relay.gmail.com, review:

  • The allowed-sender setting.

  • Configured authentication controls.

  • Any TLS requirement.

  • The application’s actual envelope sender.

  • The public source IP seen by the service.

Google documents allowed senders and connection authentication as separate controls.

Use the Google Workspace SMTP relay instructions for the chosen connection method.

Postfix Relay Access Denied

Ask the administrator to inspect the rejecting log entry, authentication result, and active relay configuration.

Relevant checks include smtpd_relay_restrictions, trusted networks, and the destination’s local, virtual, or relay-domain configuration.

Also identify Postfix’s role. When Postfix sends through an upstream relay, investigate the upstream refusal and outgoing authentication settings.

Follow the Postfix relay-control documentation. Grant the intended access narrowly; removing destination restrictions can expose an open relay.

cPanel Email Routing

Open Email → Email Routing for the affected domain.

Confirm whether the intended mailboxes are local, remote, or part of a backup arrangement.

cPanel’s automatic detection uses the local zone-file entry rather than a public DNS lookup.

The saved routing setting does not automatically change afterward, so it can disagree with updated public MX records.

Have the hosting provider reconcile both using the cPanel Email Routing documentation.

Understand the Error Code Before Resending

Error

Investigation

554 5.7.1 Relay access denied

Locate the rejecting server and check permission or destination routing

550 5.7.1 relaying denied

Read the complete diagnostic to identify the failing route

550 5.7.64 TenantAttribution

Check Microsoft 365 connector identity

454 4.7.1 Relay access denied

Check queue status while investigating the refusal

RFC 5321 classifies 4xx replies as temporary failures and 5xx replies as permanent rejections of the attempt. A permanent failure can still be corrected before a new attempt.

Temporary does not guarantee that waiting will fix the configuration. Check whether the original message remains queued before manually resending.

For other replies, use our SMTP error codes explained guide.

If the diagnostic names spam, reputation, or another policy failure, review the other causes of a 550 5.7.1 error.

Verify Delivery After the Change

Send one new message through the same application, account, and route that failed. Use a unique subject and record the time and timezone.

Test the original destination and a separate external mailbox you control.

Check the sending log or message trace, then confirm receipt. Acceptance by an intermediate relay does not by itself establish arrival in the inbox. Check spam or quarantine where appropriate.

Before restarting a campaign, confirm whether previous messages remain queued, have failed, or have already been delivered.

What to Send Your Administrator

Copy and complete this request:

text

Subject: Relay access denied — please identify the rejecting server

Sending application or device:
Sender address:
Failed recipient:
Attempt time and timezone:
Configured SMTP host, port, and TLS mode:
Rejecting hostname:
Complete SMTP diagnostic:
Message ID, queue ID, or request ID:

Scope: one app / all apps / one domain / all external domains
Working comparison:
Recent hosting, DNS, network, gateway, or certificate changes:

Please identify which server refused delivery and check whether
the cause is submission permission, connector identity, or routing.

Attach the original bounce where possible. Do not include passwords or access tokens.

If you would rather not run your own relay, TrueEmailer sends from pre-warmed SMTP infrastructure with SPF, DKIM, and DMARC configured at setup. Plans and pricing are listed on the site.

Frequently Asked Questions

What Does Relay Access Denied Mean?

A mail server refused to forward your message to the requested destination. Identify the rejecting host before changing authentication or routing settings.

Is Relay Access Denied a Sender or Recipient Problem?

Either side can be involved. Your outgoing server may refuse permission, or a receiving server may fail to recognize a domain it should handle.

Why Can I Send Internal Email but Not External Email?

The server may accept local recipients while requiring additional authorization for external delivery. Check the connection’s authentication and relay policy.

Can Changing SPF or DKIM Fix Relay Access Denied?

Changing SPF, DKIM, or DMARC does not by itself grant SMTP relay permission. Those mechanisms serve different purposes. Change them when the diagnostic identifies a related failure.

What Does “In Reply to RCPT TO Command” Mean?

The refusal occurred when the sending system presented a recipient address. It does not prove that the mailbox is invalid. Relay permission can be checked at that stage.

Should I Resend After a Relay-Denied Bounce?

Correct the cause before resending a permanently rejected message. For temporary failures, check whether the original remains queued to avoid duplicates.

Why Did This Start After Changing Email Providers?

An application may still use the old SMTP host, a gateway may retain an old route, or an approved sending identity may have changed. Compare the rejecting host with the intended mail route.