Why Exchange Online Blocks Messages as Spam and How to Fix It
Question details
Investigate and resolve issues where emails routed from an on-premises Exchange server to Microsoft 365 are incorrectly blocked or categorized as spam.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- Routing outbound messages from an on-premises Exchange server environment to a Microsoft 365 tenant.
- Observed behavior
- Messages are classified as spam, or the entire tenant is blocked by Exchange Online Protection (EOP).
Ensure you have Microsoft 365 global administrator or Exchange administrator privileges to access the Exchange admin center and perform a message trace.
Run a Message Trace in the Exchange Admin Center
Use the built-in Message Trace utility in Exchange Online to determine exactly why emails are being flagged as spam or blocked.
Running a message trace allows administrators to track the journey of an email through the Exchange Online server. It reveals if a message was rejected, deferred, or delivered, and details the specific transport rules or spam classifications that acted upon it.
Navigate to the Exchange admin center (https://admin.exchange.microsoft.com) and log in using your Microsoft 365 global administrator or Exchange administrator account.
In the left-hand navigation pane, click on 'Mail flow' and then select 'Message trace' from the drop-down options.
Click the 'Start a trace' button. In the window that appears, enter the sender's or recipient's email address in the respective fields to filter the search.
Execute the search and click on the specific blocked message from the results. Review the detailed delivery status, spam confidence level (SCL), and any transport rule triggers that caused the block.

Manage IT Reports and Documentation Seamlessly with WPS Office
While you troubleshoot Exchange server routing and mail flow rules, you need a reliable suite to manage your IT documentation and trace reports. WPS Office provides a lightweight, completely free, and feature-rich alternative to traditional office suites, ensuring you can quickly draft reports and organize data without heavy subscription costs.

Frequently Asked Questions
What is Exchange Online Protection (EOP)?
Exchange Online Protection is Microsoft's cloud-based email filtering service designed to protect organizations against spam, malware, phishing, and other inbound or outbound email threats.
Why would Exchange Online suddenly block my on-premises server?
Blocks typically occur due to missing or misconfigured SPF, DKIM, or DMARC authentication records, a sudden spike in outbound email volume that triggers anti-spam thresholds, or a compromised account sending malicious content.
How far back can I run a message trace in Exchange Online?
You can run an immediate message trace for emails sent or received within the last 7 days. For messages between 8 and 90 days old, you must submit a request for an extended trace, which will generate a downloadable CSV report, usually within a few hours.




