How to Fix Not Authorized to Relay Messages Through the Server Error
Question details
The user encounters an email delivery failure with a relay error when attempting to send messages between corporate accounts.

- Product
- Microsoft Exchange / Microsoft 365
- Device & OS
- not provided
- Scenario
- Sending emails internally between accounts within the same corporate organization.
- Observed behavior
- An error stating "Not authorized to relay messages through the server" is returned. Internal messages fail to deliver, whereas external messages may still route successfully.
Determine whether you are an end-user or an IT administrator. Resolving this specific Exchange mail flow issue requires administrative access to the Microsoft 365 Admin Center or Exchange Admin Center.
Review Exchange Connector and Domain Configurations (For IT Admins)
Since this is a server-side authentication and routing issue, the organization's Exchange administrator must verify the mail flow settings, accepted domains, and connectors.
This error typically arises when a mail server restricts forwarding (relaying) to prevent spam, and the sending account or application is not properly authenticated. In corporate setups, misconfigured connectors or domain settings often cause internal messages to be treated as unauthorized relays.
As an end-user, take a screenshot or copy the exact details of the bounced email (NDR), including the 5.7.1 or similar error code, and provide it to your IT support department.
If you are the IT administrator, log into the Microsoft 365 Exchange Admin Center using your admin credentials.
Navigate to 'Mail flow' > 'Accepted domains'. Ensure that the domains involved in the communication are correctly listed as Authoritative or Internal Relay.
Go to 'Mail flow' > 'Connectors'. Review the setup for your inbound and outbound connectors to ensure proper IP address whitelisting and authentication requirements are met for internal routing.
If standard configurations do not resolve the issue, post detailed routing logs to the Microsoft Q&A forums for IT professionals, as standard consumer channels do not handle enterprise server support.

Enhance Your Productivity with WPS Office
While your IT department works on resolving server-side Exchange relay issues, keep your daily productivity flowing seamlessly. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office, offering familiar interfaces and excellent performance without complex server dependencies.
- 1. Download the Installer: Visit the official WPS Office website and download the correct version for your Windows, Mac, or Linux operating system.
- 2. Install the Software: Run the lightweight installer file. The installation process is incredibly fast and requires minimal system resources.
- 3. Open Your Office Files: Launch WPS Office and directly open your existing Microsoft Office documents, spreadsheets, and presentations with perfect formatting retention.

Frequently Asked Questions
Why am I getting a relay error only when emailing coworkers?
This happens when your company's email server misinterprets internal traffic. If the domain is not configured as an 'Accepted Domain' internally, or if proper connectors are missing, the server assumes it is being asked to route external mail without authorization.
Can I fix the 'Not authorized to relay' error on my own?
Usually, no. Because the rejection happens at the server level (Exchange or Microsoft 365), you need an IT administrator who has the proper permissions to modify domain and mail flow settings in the Admin Center.
What does 'relay' mean in an email error?
An email relay happens when a server processes and forwards an email from a sender to a third-party destination. Servers block open relaying to prevent spammers from using their resources, requiring strict authentication for legitimate forwarding.
Where should IT admins ask for help with Exchange configurations?
IT professionals dealing with enterprise server configuration issues should utilize the Microsoft Q&A forums tailored for IT pros, as consumer support communities generally lack the technical scope for corporate domain setups.




