Exchange Connection Problems

Do Office 365 SMTP Relay Messages Follow Mail Flow Rules?

Phi Hung VoPhi Hung Vo Nov 22, 2026 868 views

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.

Do Office 365 SMTP Relay Messages Follow Mail Flow Rules?
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.
Before you start

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.

Solution 1Recommended

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.

1
Review the connector

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.

2
Check the sending device

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.

3
Inspect the rule

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.

4
Test and trace the message

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.

Verify the SMTP relay connector and mail flow rule
Check encryption separately: If the rule applies Microsoft Purview Message Encryption, confirm that the selected encryption option supports the intended external recipients and their access method.
Free Microsoft Office alternative

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.

Edit documents associated with your email workflowsOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface to transition from Microsoft OfficeAccess document, spreadsheet, and presentation tools in one lightweight suite
microsoft office alternative - wps office

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.