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

Who's in the room: Exchange admin, Purview admin, compliance lead, owner of directory data

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

  1. Design your segments and barrier policies
  2. Test barriers and get ready to apply them
  3. 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.

    Who: Owner of directory dataProduces: A group per segment, in step with the segment

  • 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.

    Other options: Delete the message silently · Decided by: Compliance lead

Rollout approach: By risk tier · Pilot size: The rules for the first barrier. Each rule follows its barrier into production, highest-risk rule first, so email and Teams are never out of step for long.

Pilot to production

3 phases
  1. Write the rules and test without notice

    Rules log matches without affecting delivery.

    Who: Exchange adminProduces: Rules matching the barrier matrix, in test mode

    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.

  2. Test with Policy Tips

    Senders see a note before they send.

    Who: Exchange adminProduces: Senders see a Policy Tip

    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.

  3. Enforce with the barrier

    Rules reject email alongside each barrier.

    Who: Exchange admin with the compliance leadProduces: Enforced rules in the Maintain rhythm

    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.

What keeps it in place:

Enforced mail flow rules reject email between the groups, with an explanation, in both directions.

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.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Messages rejected by the rulesMessage trace Steady
Differences between groups and segmentsMonthly membership comparison Down

Take it with you

plan, decisions, gate checks, 1 template

Plan outline: phases and when to move on

  1. Write the rules and test without notice. Move on when: Matches are the expected senders and recipients
  2. Test with Policy Tips. Move on when: No unexpected matches
  3. Enforce with the barrier. Move on when: Barrier and email rules agree

Decisions to record, with the recommended answer

DecisionRecommended defaultOur 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].

Microsoft Learn

4 links

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.

Changelog

Changelog (2 versions)
Published versions of this playbook
VersionDateByChange
2Sev DerghazarianRestructured into phases: decisions, how-to and pitfalls now sit with the phase they belong to. No change to the guidance.
1Sev DerghazarianFirst version. Facts checked against Microsoft Learn on 2026-10-16.