Information Barriers · Deploy
Restrict email between segments with mail flow rules
Mail flow rules that reject email between segments a rule keeps apart, built from groups that match the segments and tested before enforcement.
- Duration
- 2 to 3 weeks
- Effort
- About 2 to 4 person-days
- Complexity
- Low
- Beyond E5
- Nothing beyond Microsoft 365 E5
On this page
Overview
Information barriers don't restrict Exchange Online email, yet email is the channel most conflict-of-interest questions start with. Where a rule requires that two groups don't email each other, Microsoft points to mail flow rules. Built from the same groups as the segments and enforced alongside each barrier, they keep email consistent with Teams, SharePoint and OneDrive, so leadership's assumption that the barrier covers email becomes true.
Technically, you keep a mail-enabled group for each segment that needs email restrictions, maintained from the same source as the segment attribute. Exchange mail flow rules check sender and recipient group membership and reject the message with an explanation, one rule per direction. Each rule runs in test mode first, is checked with message trace, then is enforced alongside its barrier.
You'll end up with: Two enforced mail flow rules for every blocked pair, matching the barriers, with their groups part of the regular reviews.
If you skip it: Leadership believes the barrier covers email when it doesn't, and the first conflict-of-interest question finds messages that should never have been sent.
Before you start
The path to this playbook
- Design your segments and barrier policies
- Test barriers and get ready to apply them
- Restrict email between segments with mail flow rules (you are here)
- Test barriers and get ready to apply them: Clean directory data, required tenant settings, a test of every way people communicate, a rollback plan and a go/no-go before policies apply.
- Keep a mail-enabled group for each segment
How to do it
Mail flow rules can check whether a sender or recipient is a member of a distribution group, mail-enabled security group or Microsoft 365 group. Keep one such group per segment that needs email restrictions, maintained from the same source as the segment attribute, so the two never disagree.
- Reject with an explanation, or delete silently?
Decision: Reject with an explanation, or delete silently?
Recommended default: Reject with an explanation that names the rule
A rule can reject a message with an explanation in the bounce, or delete it without telling anyone. An explanation tells the sender why, which prevents repeated attempts and support tickets.
Pilot to production
3 phasesWrite the rules and test without notice
Rules log matches without affecting delivery.
Move on when Matches are the expected senders and recipients
How to do it
Write one rule per direction. Like barrier policies, each rule covers one direction: sender in one group, recipient in the other. Mirror the barrier matrix, so each blocked pair has two rules, and name each rule after the barrier it supports.
Test before enforcing. Create the rules in a test mode, which doesn't affect delivery, with or without a Policy Tip shown to senders. Allow up to 30 minutes for a new or changed rule to apply, then check results with message trace before switching to enforce. If other rules stop processing later rules, check the order so these rules are reached.
Watch out for (1)
If you: Write a rule for one direction only
What tends to happen: One group can still email the other.
A better approach:Create two rules for every barrier.
Test with Policy Tips
Senders see a note before they send.
Move on when No unexpected matches
Watch out for (1)
If you: Maintain groups separately from segments
What tends to happen: Email and Teams disagree about who's on which side.
A better approach:Feed both from the same source and check them together.
Enforce with the barrier
Rules reject email alongside each barrier.
Move on when Barrier and email rules agree
How to do it
Enforce and review with the barriers. Switch each rule to enforce alongside its barrier in the Deploy order. Add the rules and their groups to the Maintain reviews, so a segment change is matched in email the same day.
Watch out for (1)
If you: Assume barriers cover email
What tends to happen: Email between the groups continues unnoticed.
A better approach:Add mail flow rules wherever the rule covers email.
How you'll know it's working
2 measures
Capture a baseline before you start, or you won't be able to show the change.
| Measure | Where you see it | Good direction |
|---|---|---|
| Messages rejected by the rules | Message trace | Steady |
| Differences between groups and segments | Monthly membership comparison | Down |
Take it with you
plan, decisions, gate checks, 1 template
Plan outline: phases and when to move on
- Write the rules and test without notice. Move on when: Matches are the expected senders and recipients
- Test with Policy Tips. Move on when: No unexpected matches
- Enforce with the barrier. Move on when: Barrier and email rules agree
Decisions to record, with the recommended answer
| Decision | Recommended default | Our choice |
|---|---|---|
| Reject with an explanation, or delete silently? | Reject with an explanation that names the rule |
Gate checks: questions to answer before each phase ends
Before leaving Write the rules and test without notice
- Does every blocked pair have two rules?
- Were the rules tested before enforcement?
Before leaving Enforce with the barrier
- Do the groups match the segments?
- Are the rules part of the Maintain reviews?
Rejection text
This message wasn't delivered because [rule] doesn't allow email between [group] and [group]. If you think this is wrong, contact [compliance contact].
Contributor

Microsoft 365 architecture and governance · Protiviti
Compare notes or suggest an improvement
Changelog
Changelog (2 versions)
| Version | Date | By | Change |
|---|---|---|---|
| 2 | Sev Derghazarian | Restructured into phases: decisions, how-to and pitfalls now sit with the phase they belong to. No change to the guidance. | |
| 1 | Sev Derghazarian | First version. Facts checked against Microsoft Learn on 2026-10-16. |