Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft 365 Foundations v7.0.0 · 2.1.13

The Exchange Online connection filter safe list should be turned off

  • E3 Level 1
  • Microsoft Defender
  • Automated check

This check looks at the default connection filter policy in Exchange Online and whether its safe list option is switched on. The safe setting is to have the safe list turned off, so mail from every server goes through normal spam filtering.

Why it matters

The default connection filter policy has a safe list. Microsoft describes it as a dynamic allowlist that needs no configuration from you: Microsoft picks trusted email sources from subscriptions to various non-Microsoft lists, and spam filtering is skipped for messages from the servers on it. You can only switch the list on or off. You cannot see or edit which servers are in it.

That makes the safe list a trust decision you hand to someone else. Your tenant skips a layer of filtering for senders you never reviewed, and you cannot audit them. A tenant that has turned it off still applies the same spam filtering to every sender, and you decide any exceptions yourself with entries you can read and remove.

Microsoft's documentation notes that all incoming messages are still scanned for malware and high confidence phishing even when a source is allowed, so the safe list only affects the spam verdict. Source: Configure the default connection filter policy (Microsoft Learn).

How to check it yourself

Portal: in the Microsoft Defender portal go to Email & collaboration > Policies & rules > Threat policies > Anti-spam, open Connection filter policy (Default) and look at the Turn on safe list setting. If the box is ticked, the safe list is on.

PowerShell (read-only, run it in Exchange Online PowerShell; the Get cmdlet changes nothing):

Get-HostedConnectionFilterPolicy -Identity Default | Format-List Name,EnableSafeList,IPAllowList

The safe setting is EnableSafeList equal to False. While you are there, read IPAllowList too: every address in it also skips spam filtering, so each entry should have an owner and a reason.

How to fix it

Portal: open the same policy, choose Edit connection filter policy, clear Turn on safe list and save.

PowerShell, which changes the tenant, so run it yourself after review (ConfigCobra only reports and suggests, it never changes your tenant):

Set-HostedConnectionFilterPolicy -Identity Default -EnableSafeList $false

Run the check command again afterwards and confirm the value reads False. To undo, set the parameter back to $true.

What changes when you fix it

Messages from servers that were only trusted because of the safe list now get the normal spam verdict. Most senders will not notice, but a legitimate bulk or notification sender that was being rescued by the list can start landing in Junk or quarantine for your users.

  • Everyone with a mailbox in the tenant is affected, because the policy applies tenant-wide.
  • IP Allow List and IP Block List entries keep working as before.
  • Help desk may see a short period of "my newsletter went to Junk" reports.

Before you switch it off, ask the owners of business-critical senders (invoicing, ticketing, HR systems) to send a test message, and add an explicit allow entry only where a real need shows up. Check the tenant's message trace for the first days after the change.

Included in

BenchmarkCIS IDProfile
CIS Microsoft 365 Foundations v7.0.02.1.13E3 Level 1

Check this on your Microsoft 365

ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial