Skip to content
Copy as Markdown

Automatic Forwarding - Block

ScopeTenantRoleL1 Read to view · L1 Read/Write to act

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

SettingWhat it does
Rule nameThe name of the transport rule. Learn more
Rule enabledWhether the rule is enabled or disabled. Learn more
Matched message typeThe type of message to match (e.g., AutoForward). Learn more
Sender locationThe scope of the sender (e.g., InOrganization). Learn more
Recipient locationThe scope of the recipient (e.g., NotInOrganization). Learn more
Rejection status codeThe enhanced status code for rejected messages. Learn more
Rejection explanation textThe text displayed to users when the message is rejected. Learn more
Excluded recipientsExceptions for specific recipients. Learn more
3 more settings
SettingWhat it does
Excluded recipient domainsExceptions for specific recipient domains. Learn more
Incident report recipientEmail address to send incident reports to. Learn more
Rule priorityThe priority of the rule. Learn more
Adding a baselineAdd, configure or remove a single baseline on a tenant, a user or a group, without deploying a whole scheme.

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.

  1. 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).

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

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

  4. Leave the rejection message as-is.

    Leave Reject message enhanced status code at 5.7.1 and Reject message reason text at Delivery 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.

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

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

CISM365 6.2.1v8 3.3
NISTPR.DS-5SC-7AC-20
ISO 27001A.8.23A.8.24
GDPRArticle 32

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.