Fix Exchange Online Transport Rule Wrapping Protected Emails as Attachments
Question details
The user needs to prevent an Exchange Online transport rule from converting protected or encrypted external emails into file attachments due to a WRAP fallback action, without having to manually exclude a massive list of domains.

- Product
- Exchange Online
- Device & OS
- not provided
- Scenario
- Applying a transport rule in Exchange Online that adds a disclaimer or banner to external incoming emails.
- Observed behavior
- When external emails are encrypted or protected, the transport rule cannot inject the banner into the body. Instead, it triggers a WRAP fallback action, causing the secure message to arrive as an attachment.
Ensure you have Microsoft Exchange Administrator permissions and verify if your organization strictly requires external banners on all incoming encrypted messages.
Exclude Encrypted Messages from the Transport Rule
Modify the transport rule exceptions to bypass protected or encrypted messages, preventing the WRAP fallback action from triggering.
Because Exchange cannot modify the body of an encrypted or digitally signed message to append a banner, it wraps the message in a new envelope. By adding an exception for protected messages, you ensure they are delivered normally without the banner.
Sign in to the Microsoft 365 Exchange Admin Center (EAC) using your administrator credentials.
On the left navigation pane, go to 'Mail flow' and select 'Rules'.
Select the transport rule responsible for adding the external email banner and click 'Edit rule conditions'.
Scroll down to the 'Except if' section. Add a new exception for message types, such as 'The message properties include the message type > Permission controlled', or check for specific OME (Office 365 Message Encryption) headers.
Save the transport rule changes. Send a test encrypted email from an external domain to verify it arrives directly in the inbox instead of as an attachment.

Review Rule Diagnostics and Contact Microsoft Support
If adjusting exceptions does not resolve the wrapping issue, use message tracing to collect diagnostics and escalate to Microsoft Support.
Try WPS Office for a Seamless Productivity Experience
While you are managing complex Exchange Online server configurations, it is also important to equip your users with efficient desktop productivity tools. WPS Office is a lightweight, free alternative to Microsoft Office that meets everyday documentation, spreadsheet, and presentation needs with zero learning curve.

Frequently Asked Questions
Why does Exchange Online use a WRAP fallback action for protected emails?
When a transport rule attempts to modify an email (such as appending an HTML disclaimer) that is encrypted or digitally signed, it cannot alter the original message body without breaking the encryption. Instead, the fallback action wraps the original message inside a new envelope so the disclaimer can be applied to the outer envelope.
How can I tell which transport rule is wrapping my messages as attachments?
You can use the Message Trace tool in the Exchange Admin Center. By viewing the detailed events of a delivered message, you can see exactly which transport rules evaluated the email and which one triggered the fallback action.
Can I force Exchange to inject HTML banners into encrypted emails?
No. Due to the nature of encryption, the message body is cryptographically secured. Exchange cannot inject plain text or HTML directly into the protected payload. You must choose to reject the message, ignore the rule, or wrap it as an attachment.




