Troubleshoot Exchange Online Mail Flow Rules for Attachment Properties
Question details
Determine why an Exchange Online mail flow rule does not match attachment properties such as author, owner, or manager, and verify whether those properties are supported.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator is testing a mail flow rule with an attached document and wants to use document metadata as a matching condition.
- Observed behavior
- The rule may not match the test document when the selected attachment property is unsupported, unavailable, or configured differently from the document's actual metadata.
Have the exact transport rule name and a representative test document ready. Use an Exchange Online administrator account with permission to view transport rules, and ensure the Exchange Online PowerShell module is available.
Inspect the transport rule and verify attachment property support
Use Exchange Online PowerShell to check the saved rule configuration before assuming that a document property is supported.
A property visible in a document editor is not automatically available as an Exchange Online mail flow condition. The configured condition, property name, expected value, and supported attachment type all matter.
Open PowerShell with the ExchangeOnlineManagement module available and run Connect-ExchangeOnline. Sign in with an account that has permission to inspect mail flow rules.
Run Get-TransportRule "Transport Rule Name" | Format-List, replacing Transport Rule Name with the exact name of your rule. Review the output for the rule's state, mode, conditions, exceptions, and attachment-property values.
Open Microsoft Learn documentation for Get-TransportRule and Exchange Online mail flow rule conditions and exceptions. Check the attachment-related condition used by your rule and its supported property names and file types. Do not assume that author, owner, or manager is supported simply because the field exists in your document.
Open the test document in its editor and inspect its document properties. Compare the stored property name and value with the rule configuration, then send a new test message with the saved document attached. Check whether an exception, disabled rule, or test mode explains the result.
If Microsoft documentation does not support the selected property, open the Exchange admin center, go to Mail flow > Rules, and edit the rule to use a documented condition that meets your policy goal. Depending on the requirement, supported filename, extension, or attachment-content conditions may be alternatives, but they do not provide the same metadata check.

Use WPS Office to Prepare Documents for Attachment Testing
WPS Office is a free, lightweight alternative for creating and reviewing Office documents used in attachment tests. Its familiar interface and Microsoft Office format compatibility make migration straightforward, but it does not configure or repair Exchange Online mail flow rules.

Frequently Asked Questions
How do I see all settings for an Exchange Online mail flow rule?
Connect to Exchange Online PowerShell using Connect-ExchangeOnline, then run Get-TransportRule "Transport Rule Name" | Format-List. Replace the placeholder with the exact rule name and inspect the conditions, exceptions, state, and mode.
Can a mail flow rule match any custom document property?
Do not assume it can. Check Microsoft Learn documentation for the specific attachment condition, supported property names, and supported file types. A field visible in a document editor may not be available to Exchange Online's attachment inspection.
Why does a rule fail even when the document contains the expected author value?
The property may not be supported or extracted from that file type, or the saved rule may use a different condition or value. Run Get-TransportRule "Transport Rule Name" | Format-List and also check exceptions, rule state, and mode before retesting with a newly sent message.
What can I use if the owner or manager property is unsupported?
In the Exchange admin center, open Mail flow > Rules and select a documented condition appropriate to your policy, such as attachment filename, extension, or content matching. These conditions are not equivalent to checking ownership or management metadata, so confirm that the replacement still meets your requirement.
Can WPS Office fix Exchange Online attachment-property rules?
No. WPS Office can help create or review the document used in a test, but Exchange Online determines which attachment properties its rules can inspect. Diagnose and change the rule through Exchange Online PowerShell or the Exchange admin center.




