Restrict Microsoft 365 Group Emails to a Specific External Domain
Question details
Allow external email to selected Microsoft 365 Groups only when it comes from an approved domain.

- Product
- Microsoft 365 Groups and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator wants selected groups to receive messages from an approved external domain while blocking other external senders.
- Observed behavior
- The group setting can allow or block external senders, but it does not provide a standard option to restrict external messages to one domain.
Identify the group email addresses and the exact external domain to allow. Make sure you have permission to manage Microsoft 365 Groups and Exchange Online mail flow rules.
Create an Exchange Online rule to block other external domains
Use a mail flow rule when selected groups should accept external mail from one approved domain but reject mail from other external domains.
This is an Exchange Online mail flow configuration, not a built-in domain restriction in the Microsoft 365 Group settings. Maintain the group list in the rule as your requirements change.
A sender domain match alone does not guarantee that the sender is authentic. Review your anti-spoofing and email authentication policies as well.
In the Microsoft 365 admin center, open Teams & groups > Active teams & groups. Select the Microsoft 365 Group, open its settings, and enable the option to allow external senders to email the group.
Open the Exchange admin center and go to Mail flow > Rules. Select Add a rule > Create a new rule and give it a descriptive name.
Under Apply this rule if, add a recipient condition for the group email address and a sender location condition for senders outside the organization. Add other group addresses if they need the same restriction.
Under Except if, choose the sender domain condition and enter the approved external domain. This exempts messages matching that domain from the blocking rule.
Under Do the following, select an action to reject the message with an explanation. Save and enable the rule, then test messages to the group from the approved domain, another external domain, and an internal sender.

Work with Office files using WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing documents into your workflow. Exchange Online is still needed to configure Microsoft 365 Group mail flow.

Frequently Asked Questions
Can I allow just one external domain in the group settings?
No. The standard Microsoft 365 Group setting allows or blocks external senders but does not restrict them to a specific domain. Use an Exchange Online mail flow rule for that restriction.
Will the rule block people inside my organization?
Not if you include the condition that the sender is outside the organization. Test an internal message after enabling the rule to confirm the intended behavior.
How do I apply the restriction to several groups?
In the Exchange admin center, add the relevant group addresses to the rule's recipient condition. Update the rule when groups are added or removed from the policy.
Does allowing a sender domain prevent spoofed messages?
No. A domain match alone is not proof of sender identity. Review your Exchange Online anti-spoofing and email authentication policies and test how they handle messages claiming to be from the approved domain.




