Hi @liuwei@cesm
What's your Exchange server and CU version?
Please provide more information about your issue? Not work means you still receive messages size larger than 5MB or what else?
Have you checked the rules you created befor which you may selected "Stop processing more rules"
Select this check box to avoid applying additional rules after this rule processes a message. If the rule with higher priority worked with this option checked, this will lead to other rules not working.
For more information: Procedures for mail flow rules in Exchange Server
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.