Exchange Connection Problems

How to Fix Relay Access Denied (554 5.7.1) in Outlook for Microsoft 365

Olivia MillerOlivia Miller Nov 3, 2026 870 views

Question details

External senders are receiving a 554 5.7.1 relay access denied error when emailing a Microsoft 365 organization, while internal emails continue to route normally.

How to Fix Relay Access Denied in Outlook for Microsoft 365
Product
Outlook for Microsoft 365
Device & OS
not provided
Scenario
Receiving emails from external domains in a Microsoft 365 environment.
Observed behavior
The sender receives a non-delivery report (NDR) with error code 554 5.7.1 Relay Access Denied.
Before you start

Ensure you have Exchange administrator or global administrator privileges in your Microsoft 365 tenant to access mail flow settings and DNS configurations.

Solution 1Recommended

Verify and Configure Accepted Domains in Exchange Admin Center

Ensure your domain is properly configured as Authoritative or Internal Relay so the server knows it is allowed to accept inbound external mail.

The most common cause for the 554 5.7.1 relay access denied error is a misconfigured accepted domain in Exchange Online. If the server does not recognize the domain as its own, it will refuse to relay messages from external senders.

1
Access Exchange Admin Center

Log in to the Microsoft 365 admin center with your administrator credentials and navigate to the Exchange admin center.

2
Navigate to Accepted Domains

In the left-hand navigation pane, go to Mail flow and click on Accepted domains.

3
Check Domain Configuration

Select your domain from the list. Verify that the domain type is set to 'Authoritative' if all your recipients are hosted in Microsoft 365, or 'Internal relay' if you are utilizing a hybrid email environment.

4
Save Settings

If you made changes, save them. Allow a few minutes for the new configuration to propagate across the Exchange servers.

Verify and Configure Accepted Domains in Exchange Admin Center
Propagation Time: While Exchange Admin Center changes usually apply quickly, it can occasionally take up to an hour for mail flow rules and domain settings to fully update across the Microsoft 365 network.
Free Microsoft Office alternative

Looking for a Lightweight and Free Office Suite?

While resolving Microsoft 365 server configuration issues requires administrative work, choosing the right daily office software doesn't have to be complicated. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office.

  1. 1. Visit the official site: Go to the WPS Office official website on your computer.
  2. 2. Download the software: Click the Free Download button to get the installer for your operating system.
  3. 3. Install and launch: Run the installer, follow the simple on-screen prompts, and start creating documents immediately.
Fully compatible with Microsoft Word, Excel, and PowerPoint document formats.Lightweight architecture ensures fast startup and smooth operation on any device.Features a familiar, easy-to-use ribbon interface for seamless user migration.Includes a robust built-in PDF editor to manage all your document workflows for free.
microsoft office alternative - wps office

Frequently Asked Questions

What does error 554 5.7.1 relay access denied actually mean?

This error means the receiving email server is refusing to process the incoming message because it does not recognize the recipient's domain as one it is authorized to host or relay mail for.

Why does internal email still work when external email is blocked?

Internal emails are routed locally within the Microsoft 365 environment and do not rely on the same inbound external routing rules or strict anti-spoofing checks that apply to incoming internet emails.

How long does it take for DNS SPF record changes to take effect?

While some DNS providers apply changes almost instantly, it can generally take anywhere from 1 to 24 hours for DNS modifications like SPF records to propagate globally across all internet servers.

Can an incorrect connector cause a relay access denied error?

Yes. If your Microsoft 365 environment uses inbound connectors configured to restrict IP addresses or require TLS certificates, mail coming from sources not matching those connector criteria will be rejected with a relay error.