How to Create an Exchange Transport Rule for Approved External Senders
Question details
The user needs to configure mail flow rules to restrict external senders from emailing a Microsoft 365 mail-enabled group, allowing only specific approved external users.

- Product
- Microsoft Exchange
- Device & OS
- not provided
- Scenario
- Managing email delivery restrictions for a mail-enabled group to prevent spam or unauthorized external emails while maintaining contact with select partners.
- Observed behavior
- The goal state is to have the group reject all external emails by default except for two specifically approved external email addresses.
Ensure you have Exchange Administrator or Global Administrator privileges in your Microsoft 365 tenant to create and manage mail flow rules.
Configure a Mail Flow Rule in Exchange Admin Center
Create a transport rule that rejects external emails sent to the target group, while adding an exception for your approved external senders.
To successfully filter emails, the mail-enabled group must first be configured to accept external emails. If the group blocks external senders at the directory level, the transport rule will never be triggered because the emails will be dropped before reaching the rule processing phase.
Go to the Microsoft 365 Admin Center, navigate to 'Teams & groups' > 'Active teams and groups'. Select your group, click the 'Settings' tab, and check the box for 'Allow external senders to email this group'.
Open the Exchange Admin Center (EAC). On the left-hand navigation menu, click on 'Mail flow' and then select 'Rules'.
Click the '+' icon (Add a rule) and select 'Create a new rule'. Provide a descriptive name for the rule, such as 'Restrict External Emails to Group'.
Under 'Apply this rule if', click 'Add condition'. Select 'The recipient is' and choose your target group. Add a second condition: select 'The sender is located' and choose 'Outside the organization'.
Under 'Do the following', select 'Block the message' and choose 'reject the message and include an explanation'. You can enter a custom rejection message for unapproved senders.
Under 'Except if', click 'Add exception'. Select 'The sender is' and manually enter the email addresses of the two approved external senders. Save the rule and test it.

Looking for a Reliable Office Suite? Try WPS Office
While managing Exchange mail flow rules requires Microsoft 365 administration, your daily document creation doesn't have to rely on expensive subscriptions. WPS Office offers a free, lightweight, and highly compatible alternative for Word, Excel, and PowerPoint files.
- 1. Download the installer: Visit the official WPS website to download the free installation package.
- 2. Install the software: Run the installer and follow the on-screen prompts to set up WPS Office on your computer.
- 3. Open your documents: Launch WPS Office and open your existing Microsoft Office files seamlessly without losing formatting.

Frequently Asked Questions
Why are my approved external senders still getting rejected?
Ensure that the mail-enabled group itself is configured to allow external senders. If the group settings block external emails by default, the Exchange transport rule will not override this group-level restriction.
Can I apply this transport rule to multiple groups at once?
Yes. In the Exchange Admin Center, under the 'The recipient is' condition, you can select multiple mail-enabled groups or distribution lists to apply the same restriction and exceptions to all of them.
How can I test the transport rule without interrupting actual mail flow?
You can set the rule's mode to 'Test with Policy Tips' or 'Test without Policy Tips' in the Exchange Admin Center. This allows you to evaluate the rule's impact via message tracking logs before enforcing it across your organization.




