Security Policy Errors

What Does 'Outside the Organization' Mean in Office 365 Mail Flow Rules?

Steve KSteve K Oct 26, 2026 869 views

Question details

The user wants to understand why an Office 365 mail flow rule designed to warn about external messages failed to flag a phishing email spoofing their domain, and how the system defines 'Outside the organization'.

Product
Office 365
Device & OS
not provided
Scenario
Setting up Exchange mail flow rules to flag external emails and protect users from phishing attempts.
Observed behavior
The external sender warning rule did not trigger on a spoofed email because the 'Outside the organization' condition only checks the sender domain rather than verifying the sender's authenticity.
Before you start

Before modifying your Exchange Online settings, ensure you have Exchange Administrator privileges in your Microsoft 365 tenant to access and edit threat policies and mail flow rules.

Solution 1Recommended

Configure Anti-Phishing Policies and Spoof Intelligence

Since the 'Outside the organization' condition does not verify sender authenticity, you must configure dedicated anti-phishing policies to properly identify and block spoofed domains.

In Office 365, a sender is considered 'outside the organization' only if their address is not in an accepted domain, or if it belongs to an external relay domain. This condition does not evaluate the Message-ID or verify authentication protocols (like SPF, DKIM, or DMARC). As a result, if an attacker spoofs your own accepted domain, the mail flow rule will treat the message as internal and bypass external warnings.

1
Access the Defender Portal

Log in to the Microsoft 365 Defender portal using your administrator credentials.

2
Navigate to Threat Policies

Go to 'Email & Collaboration' in the left-hand navigation menu, select 'Policies & Rules', and then click on 'Threat policies'.

3
Edit Anti-Phishing Settings

Select 'Anti-phishing' and either create a new policy or edit your existing default policy.

4
Enable Spoof Intelligence

Ensure that 'Enable spoof intelligence' is turned on so Microsoft 365 can automatically filter messages from senders who fail authentication.

5
Configure Unauthenticated Sender Indicators

In the safety tips section of the policy, enable 'Show first contact safety tip' and 'Unauthenticated sender indicators' to display a question mark (?) in Outlook for senders who fail SPF or DKIM checks.

Configure Anti-Phishing Policies and Spoof Intelligence
Email Authentication Records: For spoof intelligence to work effectively, ensure your organization has properly configured SPF, DKIM, and DMARC DNS records for all accepted domains.
Free Microsoft Office alternative

Enhance Your Daily Productivity with WPS Office

While securing your organization's email server requires Microsoft 365 administrator tools, managing your daily documents does not have to be complicated or expensive. WPS Office provides a free, lightweight, and highly compatible alternative for your word processing, spreadsheet, and presentation needs.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the on-screen prompts to set up the software in just a few clicks.
  3. 3. Open Your Documents: Launch WPS Office and instantly open, edit, or save your existing Microsoft Word, Excel, and PowerPoint files.
Fully compatible with Microsoft Office file formats (.docx, .xlsx, .pptx)Lightweight installation with fast startup times to boost productivityFamiliar user interface allowing for seamless migration and zero learning curveBuilt-in PDF reader and advanced editing tools included for free
microsoft office alternative - wps office

Frequently Asked Questions

Why did a spoofed email bypass my external sender warning in Office 365?

Spoofed emails typically forge your organization's own domain in the 'From' address. If your domain is configured as an accepted domain in Office 365, the mail flow rule views the sender as internal, meaning the 'Outside the organization' condition is not met and the warning is bypassed.

How exactly does Office 365 determine if a sender is internal or external?

Office 365 considers a sender internal if their email address belongs to one of your tenant's accepted domains, provided that domain is not configured as an external relay domain. Any domain not listed in your accepted domains is considered external.

Can I use mail flow rules to block all spoofed emails?

It is highly discouraged to rely on basic mail flow rules for spoofing protection. Basic rules cannot process complex SPF, DKIM, and DMARC authentication results accurately. You should use Microsoft 365's built-in Anti-phishing policies and Spoof intelligence features instead.