← All articles

How to Detect and Block External Email Forwarding in Microsoft 365

Learn how to detect and block unauthorised email forwarding in Microsoft 365 using Exchange Online PowerShell, mailbox rule auditing and outbound spam policies. A practical security guide for IT administrators and MSPs.

Cloud · 3 December 2026 · 6 min read

By StrikeWard Security Team

Diagram illustrating unauthorised external email forwarding in Microsoft 365 and detection using Exchange Online PowerShell.
Contents

How to Detect and Block External Email Forwarding in Microsoft 365

An employee changes their password following a suspected account compromise. Multi-factor authentication is enabled, active sessions are revoked, and the security incident appears to be resolved.

But confidential emails are still leaving the organisation.

How?

An unauthorised mailbox forwarding rule may remain active.

Automatic email forwarding is a legitimate Microsoft 365 capability. However, when abused, it can allow attackers to maintain visibility into business communications without repeatedly accessing a compromised account.

For organisations handling financial information, medical records, intellectual property or confidential customer data, this creates a significant security risk.

This guide explains how to identify and restrict external email forwarding using Exchange Online PowerShell and Microsoft 365 security controls.

Why external email forwarding is a security risk

Unauthorised forwarding can expose:

  • Customer communications and personal information.

  • Financial statements and invoices.

  • Confidential business agreements.

  • Internal business discussions.

  • Commercially sensitive information.

  • Password reset communications.

Unlike interactive account access, an existing automatic forwarding rule may continue operating after an employee changes their password.

This makes mailbox configuration reviews an important part of both cybersecurity assessments and incident response investigations.

1. Understand the different forwarding mechanisms

Microsoft 365 administrators should understand that email forwarding can occur through several mechanisms.

Mailbox-level forwarding

Forwarding configured directly against an Exchange Online mailbox, typically through administrative settings.

Inbox rules

Rules configured against an individual mailbox that forward or redirect messages based on specified conditions.

Mail flow rules

Organisation-level Exchange transport rules that can redirect messages or add additional recipients.

Checking only one of these mechanisms does not provide complete visibility into potential email forwarding.

2. Connect to Exchange Online PowerShell

Administrators can use the Exchange Online PowerShell module to review mailbox configurations.

Install the module if it is not already available:

Install-Module ExchangeOnlineManagement -Scope CurrentUser

Connect to Exchange Online:

Connect-ExchangeOnline

Use an appropriately authorised administrative account and ensure that your activities are limited to tenants you manage or have permission to assess.

The discovery commands below are read-only.

3. Identify mailbox-level forwarding

Run the following PowerShell query:

Get-Mailbox -ResultSize Unlimited | Where-Object { $_.ForwardingAddress -or $_.ForwardingSmtpAddress } | Select-Object DisplayName, PrimarySmtpAddress, ForwardingAddress, ForwardingSmtpAddress, DeliverToMailboxAndForward

The results identify mailboxes with forwarding properties configured.

Pay particular attention to:

  • Forwarding destinations outside approved organisational domains.

  • Personal email addresses.

  • Unrecognised third-party recipients.

  • Forwarding configured against executive or finance mailboxes.

  • Shared mailboxes containing sensitive information.

Resolve referenced recipient objects where necessary to determine their actual delivery destinations.

Not every forwarding configuration is malicious. Validate each configuration against documented business requirements.

4. Investigate hidden and suspicious inbox rules

Mailbox-level forwarding is only one part of the assessment.

Inbox rules can also forward or redirect messages to other recipients.

Review an individual mailbox using:

Get-InboxRule -Mailbox user@example.com -IncludeHidden | Format-List Name,Enabled,RedirectTo,ForwardTo,ForwardAsAttachmentTo,DeleteMessage,MoveToFolder

Replace the example address with the mailbox being investigated.

Suspicious indicators include:

  • Unrecognised external forwarding destinations.

  • Rules that delete particular incoming messages.

  • Rules that move security notifications into unexpected folders.

  • Rules targeting invoices or payment-related communications.

  • Rules with unusual or misleading names.

Hidden rules should be included in the investigation, but their presence alone does not establish malicious activity.

For larger environments, administrators should incorporate mailbox rule discovery into a structured assessment process, recording any mailboxes that could not be successfully reviewed.

5. Review organisation-level mail flow rules

Exchange Online transport rules can also modify message delivery.

Review configured rules using:

Get-TransportRule | Select-Object Name,State,Mode,Priority,Description

Investigate rules that redirect messages, add external recipients or introduce unexpected delivery paths.

These rules may support legitimate business integrations, so changes should be assessed against operational requirements before implementation.

6. Check your outbound spam policies

Microsoft 365 provides controls for restricting automatic external forwarding through outbound spam policies.

To review the existing configuration:

Get-HostedOutboundSpamFilterPolicy | Select-Object Name,AutoForwardingMode

The available forwarding modes include:

ModeBehaviour

Automatic

Microsoft-managed behaviour that may vary depending on existing configuration

On

The policy does not restrict automatic external forwarding

Off

Automatic external forwarding is blocked by the policy

For organisations without an approved external forwarding requirement, explicitly disabling automatic external forwarding provides a clearer security configuration.

Review custom policy assignments and priorities as well as the default policy.

7. Block automatic external email forwarding

Navigate to the Microsoft Defender portal:

https://security.microsoft.com/antispam

Open the relevant outbound spam policy and locate the automatic forwarding configuration.

Set automatic forwarding to:

Off – Forwarding is disabled

Save the policy following your organisation's change management process.

Before implementing this control, identify legitimate integrations, ticketing systems and business workflows that rely on forwarding.

Where exceptions are necessary, apply narrowly scoped policies with documented approval.

Remember that this control does not prevent employees from manually forwarding messages. Additional data protection controls may be required.

8. Investigate unauthorised forwarding as a potential security incident

Discovering an unexpected forwarding rule should trigger more than a configuration change.

Determine:

  • When the forwarding configuration was created.

  • Whether an authorised administrator or employee created it.

  • Whether suspicious sign-ins occurred.

  • Which messages may have been delivered externally.

  • Whether other mailbox rules or permissions were modified.

  • Whether confidential or personal information was exposed.

Preserve relevant audit records and message trace information, subject to availability and retention.

If account compromise is suspected, follow your incident response process, including credential resets, session revocation and investigation of unauthorised application permissions.

Australian organisations should also assess whether any applicable data breach notification obligations have been triggered.

Microsoft 365 email forwarding assessment checklist

Use the following checklist during your next security assessment:

  • Mailbox-level forwarding configurations reviewed.

  • Inbox rules and hidden rules reviewed.

  • Organisation-level mail flow rules assessed.

  • Outbound spam policies reviewed.

  • Automatic external forwarding restricted.

  • Approved forwarding exceptions documented.

  • Suspicious activity investigated.

  • Assessment evidence retained.

  • Recurring configuration reviews established.

How often should Microsoft 365 security configurations be reviewed?

A security configuration that was appropriate six months ago may no longer reflect your organisation's current requirements.

Employees change roles, new applications are introduced, administrative permissions evolve and business integrations are added.

StrikeWard recommends incorporating Microsoft 365 configuration assessments into a recurring security management process, with additional reviews following security incidents and significant infrastructure changes.

For MSPs, standardising these assessments across customer environments can help reduce configuration inconsistencies and improve service delivery.

Frequently asked questions

Does changing a Microsoft 365 password remove forwarding rules?

No. Changing an account password does not automatically remove existing mailbox forwarding configurations or inbox rules.

Does MFA prevent malicious email forwarding?

MFA reduces the risk of unauthorised account access, but it does not remove previously configured forwarding rules or prevent every form of account compromise.

Does blocking external forwarding affect internal forwarding?

Microsoft 365 outbound spam policy restrictions on automatic external forwarding do not affect automatic forwarding between internal users.

Does DMARC prevent unauthorised email forwarding?

No. DMARC addresses email authentication and domain impersonation. It is not designed to prevent unauthorised mailbox forwarding.

Strengthen your Microsoft 365 security with StrikeWard

Microsoft 365 provides extensive security capabilities, but their effectiveness depends on configuration, ongoing management and visibility.

StrikeWard helps Australian businesses and managed service providers identify security weaknesses, manage cybersecurity risks and improve their security posture.

Our professional services include Microsoft 365 security assessments, Microsoft Defender configuration, data loss prevention and cybersecurity engineering.

Your cybersecurity team. Without the cost of building one.

Start your 14-day free StrikeWard Business trial or speak with a cybersecurity specialist at https://strikeward.com.


Technical references

Microsoft Learn:

Frequently asked questions

How do I check for external email forwarding in Microsoft 365?

Use Exchange Online PowerShell to review mailbox forwarding configurations, inbox rules and transport rules. Administrators can also review outbound spam policies through the Microsoft Defender portal.

How do I block automatic external email forwarding in Microsoft 365?

Navigate to the Microsoft Defender portal, open your outbound spam policies and set automatic forwarding to Off. Review legitimate business requirements and document any approved exceptions before applying changes

Can DMARC prevent external email forwarding?

No. DMARC helps protect against domain impersonation and email spoofing. Preventing unauthorised automatic forwarding requires separate Exchange Online security controls and mailbox configuration monitoring.

How often should businesses audit Microsoft 365 forwarding rules?

StrikeWard recommends monthly reviews as a starting point, alongside additional assessments following suspected account compromises, significant configuration changes or employee departures. Higher-risk organisations should consider continuous monitoring.

About the author

StrikeWard is a practitioner-led security guidance company based in Australia. This article is general guidance, not legal advice, and does not guarantee any security outcome.

Get a Free Cyber Health Check

A free external review of your domain's security.

Get a Free Cyber Health Check