Why Exchange Online Blocks DOCX and XLSX Attachments
Question details
Determine why Exchange Online Protection quarantines Word and Excel attachments and how to correct the responsible settings.

- Product
- Exchange Online Protection
- Device & OS
- not provided
- Scenario
- DOCX and XLSX files are sent as email attachments through Exchange Online.
- Observed behavior
- Some Word and Excel attachments are quarantined as malware, potentially because of an unexpected filter setting or a higher-priority policy.
Sign in with an account that can review Exchange message traces and Microsoft Defender quarantine and policy settings. Gather the sender, recipient, approximate delivery time, and subject of an affected message.
Trace the Message and Review Malware Policy Priority
Use message and quarantine details to identify the cause, then check which anti-malware policy applies to the recipient.
In the Exchange admin center, open Mail flow > Message trace. Search using the sender, recipient, and approximate time, then open the affected message's details.
In the Microsoft Defender portal, open Email & collaboration > Review > Quarantine. Find the message and inspect its quarantine reason and available detection details.
In Microsoft Defender, open Email & collaboration > Policies & rules > Threat policies > Anti-malware. Compare policy priorities, recipient conditions, exclusions, and common attachment filter settings to identify the policy that applies.
Edit the relevant policy if its scope, priority, or blocked file types are incorrect. Send a known-safe DOCX or XLSX test attachment to the affected recipient and check the new message trace and quarantine results.

Recreate an Unreliable Policy or Review Mail Flow Rules
Use this approach if policy settings still behave unexpectedly or message trace points to a mail flow rule.
Open Word and Excel Attachments with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with Word and Excel files. It supports common Microsoft Office formats for an easy transition, but it does not change Exchange Online quarantine or filtering settings.

Frequently Asked Questions
How do I find out why an attachment was quarantined?
Search for the message in Exchange admin center > Mail flow > Message trace, then check its entry under Microsoft Defender > Email & collaboration > Review > Quarantine for the quarantine reason and detection details.
Can a higher-priority malware policy affect my attachments?
Yes. If multiple anti-malware policies apply, priority affects which policy is used. Check their order and recipient conditions under Microsoft Defender > Email & collaboration > Policies & rules > Threat policies > Anti-malware.
Should I release a quarantined DOCX or XLSX file immediately?
No. Review the quarantine reason and verify the sender and attachment first. Word and Excel files can contain malicious content even when their extensions appear familiar.
Can a mail flow rule fix an attachment filter issue?
A scoped rule may help manage attachment handling when a transport rule is the cause, but it should not be used to bypass malware detection. Review rules under Exchange admin center > Mail flow > Rules and test any changes.
Will opening the file in WPS Office prevent Exchange from quarantining it?
No. Exchange Online Protection filters messages before the recipient opens their attachments. Review the message trace, quarantine details, and relevant policies to address the delivery issue.




