Automatic Forwarding - Block
This transport rule blocks automatic email forwarding to external recipients. Enabling this rule helps prevent data exfiltration and reduces the risk of sensitive information being sent outside the organization without authorization.
Settings this baseline controls
| Setting | What it does |
|---|---|
| Rule name | The name of the transport rule. Learn more |
| Rule enabled | Whether the rule is enabled or disabled. Learn more |
| Matched message type | The type of message to match (e.g., AutoForward). Learn more |
| Sender location | The scope of the sender (e.g., InOrganization). Learn more |
| Recipient location | The scope of the recipient (e.g., NotInOrganization). Learn more |
| Rejection status code | The enhanced status code for rejected messages. Learn more |
| Rejection explanation text | The text displayed to users when the message is rejected. Learn more |
| Excluded recipients | Exceptions for specific recipients. Learn more |
3 more settings
| Setting | What it does |
|---|---|
| Excluded recipient domains | Exceptions for specific recipient domains. Learn more |
| Incident report recipient | Email address to send incident reports to. Learn more |
| Rule priority | The priority of the rule. Learn more |
Configure it
Add this baseline to the tenant to stop internal mailboxes automatically forwarding mail to an external address, or bundle it into a scheme you deploy to many tenants at once.
-
Add the baseline.
Add it to the tenant directly (see Adding a baseline), or deploy it as part of a scheme (see Deploying a scheme). Adding it to a scheme needs L2 Support or Admin (Creating a scheme).
-
Turn the rule on.
Set State (the settings table calls it Rule enabled) to Enabled. The other choice, No policy (deleted), makes the baseline expect the rule not to exist, and remediation removes it.
-
Leave the scope as sender inside, recipient outside.
Leave From scope at In Organization and Sent to scope at Not In Organization (the settings table calls them Sender location and Recipient location). Message type matches (Matched message type in the settings table) is fixed at
AutoForward. This catches only automatic forwarding (a mailbox forwarding rule or an admin-set forwarding address), not someone forwarding or replying to a message by hand. -
Leave the rejection message as-is.
Leave Reject message enhanced status code at
5.7.1and Reject message reason text atDelivery Not Authorized, Message Refused(the settings table calls them Rejection status code and Rejection explanation text), so a blocked sender gets a clear, standard bounce rather than a silent drop. -
Keep the rule first and free of exceptions.
The baseline expects Priority 0, the top of the tenant’s mail flow rule order, and nothing in Except if sent to, Except if recipient domain is or Generate incident report (in the settings table, Rule priority, Excluded recipients, Excluded recipient domains and Incident report recipient). To exempt a recipient or domain, or to have an incident report emailed when the rule fires, add it here so the baseline expects it too.
-
Save, then switch on Auto if you want automatic remediation.
Select Save if you changed any values. Switch on the Auto column on the baseline’s row, on the tenant’s Org-level tab or in a scheme, to have Octiga recreate the rule whenever it’s disabled or removed. Auto acts only while the tenant’s Allow auto-remediation setting is on (Tenant settings); with either off, fix a deviation yourself (Remediation). Existing automatic forwards to external addresses stop working once the rule is in place.
Check it worked
Passing means a mail flow rule named Automatic Forwarding - Block exists, is enabled and matches the baseline’s values: by default, first in the rule order with no exceptions. If someone moves another rule above it or adds an exception in Microsoft 365, the baseline shows Deviated. You can confirm the rule in the Exchange admin centre under Mail flow → Rules. When a user has a forwarding rule to an external address, the forwarded messages bounce back to the original sender with a non-delivery report instead of reaching the external address.
Standards this addresses
Doing this for every tenant?
Step through the deploy wizard to apply a scheme to a tenant, groups or users, and see what Managed and Direct do at deploy time.