Description
Exchange Online stops automatic forwarding of messages to recipients outside the organization,
whatever the mechanism: Inbox rules, the mailbox forwarding setting (ForwardingSmtpAddress) and
Outlook on the web forwarding. Two layers are set:
- every outbound spam filter policy, starting with the default one, has Automatic forwarding
rules set to Off - Forwarding is disabled (
AutoForwardingMode Off); - the default remote domain (
*) has Allow automatic forwarding turned off (AutoForwardEnabled $false).
Approved business cases (a partner mailbox, a ticketing service) are handled with a dedicated outbound spam policy scoped to the named senders, or a remote domain for the named destination domain, never by reopening forwarding for everyone.
The outbound spam policy controls forwarding that the user sets (Inbox rules, mailbox forwarding).
Forwarding set by an administrator on the mailbox (ForwardingAddress to a mail contact) and
mail flow rules that redirect messages are not blocked by it: review them as part of the audit.
Rationale
Forwarding rules are one of the first things an attacker sets after compromising a mailbox:
the rule keeps feeding them mail after the password is reset, and it is used to watch invoice
threads before a business email compromise fraud. Leaked data through forwarding is also a common
insider risk. The Automatic default lets Microsoft decide and its behavior can change; an
explicit Off makes the rule visible and auditable.
Impact
Users who forward their work mail to a personal address lose that ability and the forwarded messages bounce with an NDR (5.7.520). Inventory existing external forwarding before the change (see the audit) and create scoped exceptions for the legitimate cases. Forwarding inside the organization, delegates and mail flow rules set by administrators keep working.
Audit
- Sign in to the Microsoft Defender portal (https://security.microsoft.com) as at least a Security Reader.
- Browse to Email & collaboration > Policies & rules > Threat policies > Anti-spam. Open every outbound policy (Anti-spam outbound policy (Default) and any custom one) and check that Automatic forwarding rules is Off - Forwarding is disabled. A custom policy with On is acceptable only if it is scoped to named, approved senders.
- Sign in to the Exchange admin center (https://admin.exchange.microsoft.com) as at least a Global Reader. Browse to Mail flow > Remote domains, open Default and check that Allow automatic forwarding is cleared.
- In Exchange Online PowerShell (read-only):
Get-HostedOutboundSpamFilterPolicy | Format-Table Name, AutoForwardingMode Get-RemoteDomain | Format-Table Name, DomainName, AutoForwardEnabled Get-Mailbox -ResultSize Unlimited -Filter "ForwardingSmtpAddress -ne $null -or ForwardingAddress -ne $null" | Format-Table UserPrincipalName, ForwardingSmtpAddress, ForwardingAddress - Fail if any outbound policy that applies to all users has
AutoForwardingModeset toAutomaticorOn, if the*remote domain hasAutoForwardEnabledset toTrue, or if a mailbox forwards to an external address that is not a documented exception.
Remediation
- List the mailboxes that forward externally (audit step 4) and agree on the exceptions with their owners.
- In the Defender portal, browse to Email & collaboration > Policies & rules > Threat policies > Anti-spam, open Anti-spam outbound policy (Default) > Edit protection settings and set Automatic forwarding rules to Off - Forwarding is disabled. Do the same in every custom outbound policy that is not a scoped exception.
- For each approved exception, create a custom outbound policy that applies only to those senders with Automatic forwarding rules set to On - Forwarding is enabled.
- In the Exchange admin center, browse to Mail flow > Remote domains > Default > Edit reply types and clear Allow automatic forwarding.
- PowerShell equivalent (Security Administrator for the policy, Exchange Administrator for the
remote domain):
Set-HostedOutboundSpamFilterPolicy -Identity Default -AutoForwardingMode Off Set-RemoteDomain -Identity Default -AutoForwardEnabled $false - Remove the
ForwardingSmtpAddressof mailboxes that are not exceptions (Set-Mailbox -Identity <user> -ForwardingSmtpAddress $null).
Rollback
Set AutoForwardingMode back to Automatic on the default outbound policy, or add the sender
to a scoped exception policy.
References
- Control automatic external email forwarding in Microsoft 365 Microsoft, vendor-doc, accessed 2026-10-24
- Remote domains in Exchange Online Microsoft, vendor-doc, accessed 2026-10-24
- Set-HostedOutboundSpamFilterPolicy Microsoft, vendor-doc, accessed 2026-10-24
- CISA SCuBA Exchange Online baseline CISA, standard, accessed 2026-10-24
- ASD Blueprint for Secure Cloud - Remote domains Australian Signals Directorate, guide, accessed 2026-10-24
Mappings
| Framework | ID | Relation |
|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | AC-4 | related |
| NIST SP 800-53 Rev. 55.1.1 | SC-7 | related |
| CISA SCuBA Microsoft 365 Secure Configuration Baselines2.0.0 | MS.EXO.1.1v2 | equivalent |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1114.003 |
Related controls
- related
CB-M365-MAIL-031Set outbound sending limits and notify administrators of blocked senders - related
CB-M365-AUDIT-008Turn on key Microsoft 365 alert policies and route them to a monitored destination
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |