Set up mail flow rules for external email messages in Office

Madalina Dinita
by Madalina Dinita
Former Managing Editor
Download PDF
Affiliate Disclosure

Mail flow rules in Office 365

Are you trying to set up mail flow rules for external email messages in Office 365? They work in a similar way to the Inbox rules that are currently available in Outlook.

You can use these mail flow rules to look for specific conditions on messages that pass through your organization. However, the main difference is that mail flow rules take action on messages while they’re still in transit, and never after a message is delivered to the mailbox.

Overall, the flexibility to implement many types of messaging policies is too good to refuse. All messages that flow through your organization could be evaluated against the enabled mail flow rules in your organization.

So, keep on reading the below steps and learn how to master them.

How can I set up mail flow rules for external email messages?

  1. In Exchange Admin Center, go to Mail flow > Rules.Exchange Admin Center
  2. Now, you may create the rule by using one of the following options:
    Click the Add + icon and select a template in order to create a rule from a template.
    To copy a rule, select it. Then, select the Copy icon.
    To create a new rule from scratch, click the Add + icon. Next, select Create a new rule.Create a new rule
  3. In the New rule dialog box, it’s time to name the rule.
  4. Then, select the conditions and actions for this rule:
    In Apply this rule if…, choose a condition from the list of available conditions.
    In Do the following…, select the action you want the rule to take on messages matching the criteria from the list of available actions.
    Under Audit this rule with severity level, also select a severity level for the rule.
    Set the mode for the rule: Enforce, Test with Policy Tips, or Test without Policy Tips.
  5. Click More options in the bottom left corner if you want to add more conditions or actions, or if you want to specify exceptions.More options
  6. Finally, click Save and you’re done.

Note: It can take up to 30 minutes and more for the new rule to be applied to email.

To make sure that you have successfully created a new mail flow rule, run the following command on Exchange Online PowerShell: Get-TransportRule “Mark messages from the Internet to Sales DG”.

With that said, here’s how you set up mail flow rules for external email messages in Office 365. If you still need our help, contact us anytime by using the comments area below.


Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!