Fix Microsoft 365 SMTP Relay Not Working: Troubleshooting Guide
Question details
SMTP relay messages appear to send successfully but remain stuck in local queues and fail to arrive at their Microsoft 365 destination.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Sending emails through a network device or local server utilizing a Microsoft 365 SMTP relay connector.
- Observed behavior
- Emails stay stuck in the outbound queue instead of being delivered. Common underlying causes include blocked IP addresses, ISP restrictions on port 25, or outdated SPF/connector settings.
Ensure you know the static public IP address of your sending server and have administrator credentials for the Microsoft 365 Exchange Admin Center.
Delist Blocked IP Addresses from Spam Authorities
If your sending IP address is blacklisted by spam monitoring services, Microsoft 365 will refuse the relayed connections.
A primary reason for SMTP relay failure is that the sending IP has been flagged by external spam blocklists. Until the IP is removed from these lists, your relay attempts will be rejected or forced to queue indefinitely.
Determine the exact static public IP address that your on-premises server, application, or device uses to send outbound emails.
Use a reputable online MX lookup or blacklist checking tool to scan your public IP address against major spam blocklist databases.
Navigate to the website of the specific blocklist authority that flagged your IP. Fill out their required delisting request form, submit it, and wait for the process to complete before testing your email relay again.

Verify Port 25 Access and Connector Settings
Ensure your Internet Service Provider (ISP) allows outbound port 25 traffic and that your Microsoft 365 connector is configured accurately.
Boost Your Productivity with WPS Office
While resolving complex Microsoft 365 SMTP and Exchange server issues can be tedious, your daily document creation shouldn't be. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office, letting you maintain peak productivity seamlessly without subscription hassles.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer package.
- 2. Install and Launch: Run the quick installation process and open the all-in-one office suite on your desktop.
- 3. Edit Your Documents Seamlessly: Open your existing .docx, .xlsx, or .pptx files directly and continue working with full format compatibility.

Frequently Asked Questions
How do I know if my IP address is blocked by Microsoft 365?
You can check the Non-Delivery Report (NDR) bounce message for specific rejection error codes (such as 5.7.1), or use the Microsoft Remote Connectivity Analyzer to run an outbound SMTP test which will clearly indicate if your IP has been blocked.
Why are my emails queuing locally instead of generating a bounce back?
If your ISP or local network firewall is completely blocking outbound port 25, your mail server cannot reach the destination Microsoft server to initiate the connection handshake. This results in messages remaining queued locally rather than triggering an immediate rejection.
Do I need a static IP address for an SMTP relay to Microsoft 365?
Yes, setting up a secure SMTP relay connector in Microsoft 365 requires you to authenticate using a static public IP address. Dynamic IP addresses are generally not supported for this method and often end up automatically categorized on spam blocklists.




