Fix External Sender Banners for On-Premises Relay Messages in Exchange Online
Question details
Prevent trusted messages from an on-premises mail relay from receiving an external-sender banner in Exchange Online.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- An organization sends messages through an on-premises relay using its internal domain.
- Observed behavior
- Exchange Online may treat the relay messages as external and apply an external-sender banner.
Identify the rule or feature adding the banner, and confirm the relay's public sending IP address and intended connector in the Exchange admin center. Make sure the relay and its trusted sending path are restricted so unauthorized senders cannot use them.
Add a Trusted Relay Exception to the Banner Rule
Use this approach when an Exchange Online mail flow rule adds the banner and the relay has a restricted, identifiable sending path.
An exception prevents the selected rule from adding its banner; it does not necessarily make Exchange Online classify the message as internal. Do not exempt messages solely because their visible sender address uses your domain.
A sender IP exception is appropriate only when the IP identifies a trusted, controlled mail path. A shared or unrestricted relay could allow unwanted messages to bypass the banner.
In the Exchange admin center, open Mail flow > Connectors. Review the inbound connector used by the relay and verify that its certificate or IP restrictions match the intended mail path.
Go to Mail flow > Rules, select the rule that adds the external-sender banner, and open its conditions for editing.
Under Except if, choose the sender IP address condition and enter the relay's trusted public sending IP address or range. Save the rule changes.
Send a test message through the relay and another from an external source, then check their banners. Use Mail flow > Message trace to investigate whether each message followed the expected path.

Verify Domain Authentication and Relay Mail Flow
Use these checks to troubleshoot the relay's mail path and reduce domain spoofing risks alongside the banner-rule change.
Use WPS Office for Compatible Office Documents
WPS Office is a free, lightweight alternative for everyday document work, with a familiar interface and Microsoft Office format support for easier migration. Exchange Online connector and banner settings must still be managed in Microsoft 365.

Frequently Asked Questions
Why does a message from my internal domain get an external banner?
The message may enter Exchange Online through an on-premises relay and match a rule that treats its mail path as external. Check the banner rule under Mail flow > Rules and review the relay connector under Mail flow > Connectors.
Can I exempt every message that shows my internal domain as the sender?
Avoid that approach because a spoofed message could claim the same domain and bypass the banner. Use a reliable characteristic of a restricted, trusted mail path instead.
Does a relay exception make the message internal in Exchange Online?
Not necessarily. An exception to a banner rule stops that rule from adding the banner, but it does not by itself change Exchange Online's internal or external classification.
Will fixing SPF or enabling DKIM remove the banner?
Not necessarily. SPF and DKIM help authenticate mail, but the banner may still be applied by a mail flow rule. Review the rule in Exchange admin center > Mail flow > Rules.




