How to Fix Relay Access Denied (554 5.7.1) in Outlook for Microsoft 365
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.

- 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.
Ensure you have Exchange administrator or global administrator privileges in your Microsoft 365 tenant to access mail flow settings and DNS configurations.
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.
Log in to the Microsoft 365 admin center with your administrator credentials and navigate to the Exchange admin center.
In the left-hand navigation pane, go to Mail flow and click on Accepted domains.
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.
If you made changes, save them. Allow a few minutes for the new configuration to propagate across the Exchange servers.

Validate and Update SPF Records
Confirm that your Sender Policy Framework (SPF) DNS record includes all authorized sending IP addresses to prevent anti-spoofing rejections.
Review the Complete Non-Delivery Report (NDR)
Examine the full bounce-back message to identify specific connectors or anti-spam rules blocking the relay.
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. Visit the official site: Go to the WPS Office official website on your computer.
- 2. Download the software: Click the Free Download button to get the installer for your operating system.
- 3. Install and launch: Run the installer, follow the simple on-screen prompts, and start creating documents immediately.

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.




