Do Office 365 SMTP Relay Messages Follow Mail Flow Rules?
Question details
Determine whether messages sent through an Office 365 SMTP relay connector are subject to Exchange Online mail flow rules and how to investigate delivery failures.

- Product
- Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- A printer or application sends messages through an Exchange Online SMTP relay connector, potentially to external recipients.
- Observed behavior
- Relay messages can be processed by matching mail flow rules, but connector settings, TLS requirements, and recipient restrictions can affect delivery.
Gather the sending device's SMTP settings, public IP address or certificate details, and any full SMTP error responses. Make sure you can access the Exchange admin center to review connectors, rules, and message traces.
Verify the SMTP relay connector and mail flow rule
Use this approach to confirm that relay messages reach Exchange Online and match the intended rule.
Exchange Online can apply mail flow rules to SMTP relay messages when their conditions match. A connector rejection can prevent a message from reaching rule processing.
In the Exchange admin center, open Mail flow > Connectors. Review the inbound connector used by the device or application, including its public IP address or certificate identification and TLS requirements.
Open the printer or application's SMTP settings. For Microsoft 365 SMTP relay, verify that it uses your domain's Microsoft 365 MX endpoint on port 25 and that its public IP address or certificate matches the connector. Enable TLS if the connector requires it.
In the Exchange admin center, open Mail flow > Rules and select the rule. Check that it is enabled and that its conditions and exceptions include the sender, recipients, and messages you want to process.
Send a test message from the device to an external address, then open Mail flow > Message trace in the Exchange admin center. Search by sender, recipient, and time, and compare the trace with the device's full SMTP response.

Investigate an external-recipient rejection
Use the exact SMTP response and connector configuration to diagnose a message saying recipients must be on the same domain.
Work with Office documents in WPS Office
WPS Office is a free, lightweight, easy-to-use alternative for working with Office documents. Its familiar interface and Microsoft Office format compatibility make it easier to move existing files, though it does not configure or repair Exchange Online SMTP relay.

Frequently Asked Questions
Do mail flow rules apply to messages sent through an SMTP relay connector?
Yes. Exchange Online can process accepted relay messages with mail flow rules when the rule conditions match and no exception applies. Check Mail flow > Rules in the Exchange admin center.
Can Microsoft 365 SMTP relay send to external recipients?
Yes, a correctly configured SMTP relay can send to external recipients. Check the device's MX endpoint and port, the inbound connector's IP or certificate identification, and any applicable TLS requirement.
What happens if the connector requires TLS but the device does not use it?
The connector can reject the message. Check Mail flow > Connectors for the TLS requirement and enable compatible TLS settings in the device or application's SMTP configuration.
Where can I find out why a relay message failed?
Search Mail flow > Message trace in the Exchange admin center using the sender, recipient, and sending time. Also check the device or application's SMTP logs for the complete response, especially if the message does not appear in the trace.




