Skip to content
Copy as Markdown

Anti Spam Inbound Policy (Default)

ScopeTenantRoleL1 Read to view · L1 Read/Write to act

The default Exchange Online Protection (EOP) anti-spam inbound policy defines how incoming messages are handled based on spam confidence levels, bulk thresholds, and HTML content checks. Configuring this policy helps protect users from spam, phishing, and bulk email threats.

Settings this baseline controls

SettingWhat it does
Policy nameThe name of the anti-spam policy. The Default policy applies to all users without a specific policy assignment. Learn more
Spam actionThe action to take on messages identified as spam (SCL 5-6). Options: MoveToJmf, AddXHeader, ModifySubject, Redirect, Delete, Quarantine, NoAction. Learn more
High-confidence spam actionThe action to take on messages identified as high-confidence spam (SCL 9). Options: MoveToJmf, AddXHeader, ModifySubject, Redirect, Delete, Quarantine, NoAction. Learn more
Phishing actionThe action to take on messages identified as phishing. Options: MoveToJmf, AddXHeader, ModifySubject, Redirect, Delete, Quarantine, NoAction. Learn more
Bulk email actionThe action to take on messages identified as bulk email. Options: MoveToJmf, AddXHeader, ModifySubject, Redirect, Delete, Quarantine, NoAction. Learn more
Bulk email thresholdThe Bulk Complaint Level (BCL) threshold (1-9). Messages at or above this level are treated as bulk email. Lower values are more aggressive (3-4 = strict, 7-9 = lenient). Learn more
Inline safety tips enabledEnables or disables safety tips shown to recipients for spam, phishing, or spoofed messages. Learn more
Allowed sendersList of sender email addresses whose messages bypass spam filtering. Learn more
9 more settings
SettingWhat it does
Allowed sender domainsList of sender domains whose messages bypass spam filtering. Use with caution as this can increase phishing risk. Learn more
Blocked sendersList of sender email addresses whose messages are always marked as high-confidence spam. Learn more
Blocked sender domainsList of sender domains whose messages are always marked as high-confidence spam. Learn more
JavaScript in HTML filterMarks messages as spam if they contain JavaScript in HTML. Values: On, Off, Test. Learn more
Frames in HTML filterMarks messages as spam if they contain frames or iframes in HTML. Values: On, Off, Test. Learn more
Object tags in HTML filterMarks messages as spam if they contain object tags in HTML. Values: On, Off, Test. Learn more
Embed tags in HTML filterMarks messages as spam if they contain embed tags in HTML. Values: On, Off, Test. Learn more
Form tags in HTML filterMarks messages as spam if they contain form tags in HTML. Values: On, Off, Test. Learn more
Web bugs in HTML filterMarks messages as spam if they contain web bugs (tracking pixels) in HTML. Values: On, Off, Test. 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 set the Default inbound anti-spam policy for every mailbox, 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. Set the spam and phishing actions.

    Set Spam action and Phishing action to Move message to junk email folder, and High-confidence spam action, High-confidence phishing action and Bulk email action to Quarantine message, so the messages Microsoft is most confident about never reach the inbox. Each action that quarantines shows its own quarantine policy below it, set to DefaultFullAccessPolicy in the defaults.

  3. Set the bulk email threshold.

    Set Bulk email threshold to 6. This mid-range value catches mass mailings and newsletters without also quarantining the lower-confidence bulk mail some legitimate tools send.

  4. Keep zero-hour auto purge on.

    Leave Spam zero-hour auto purge and Phishing zero-hour auto purge on, so a message Microsoft identifies as spam or phishing after delivery gets the same action as one caught on arrival. Leave Quarantine retention period at 30 days.

  5. Leave the allow and block lists empty.

    Leave Allowed senders, Allowed sender domains, Blocked senders and Blocked sender domains empty unless your organisation needs to exempt or always block a specific address. An allowed sender or domain skips spam filtering altogether, so use allow entries sparingly. Contains specific languages and From these countries or regions are off in the defaults; if you turn one on, pick at least one language or place, or the editor won’t save.

  6. Review the advanced spam filter options.

    The defaults switch on every option under Increase spam score and Mark as spam, including the six “in HTML filter” settings (JavaScript, frames, object tags, embed tags, form tags and web bugs in HTML). An Increase spam score option only raises a message’s spam score, but a message that matches one of the HTML filters is marked as high-confidence spam outright and quarantined, so a legitimate newsletter with a tracking pixel can be caught. Microsoft no longer recommends turning these options on. Set any you don’t want to Off, and the baseline expects that instead.

  7. 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 reapply these settings whenever the Default policy changes. Auto acts only while the tenant’s Allow auto-remediation setting is on (Tenant settings); with either off, fix a deviation yourself (Remediation).

Check it worked

Passing means the Default anti-spam inbound policy in Exchange Online has these settings. You can confirm it in the Microsoft Defender portal under Email & collaboration → Policies & rules → Threat policies → Anti-spam. End users notice more suspected spam and phishing landing in their Junk Email folder instead of the inbox. They can see and release their own quarantined bulk mail and high-confidence spam from the Defender portal’s Quarantine page, though the default quarantine policy sends them no notification emails; a message quarantined as high-confidence phishing needs an admin to release it.

Standards this addresses

CISv8 9.7
NISTPR.DS-4SI-3SC-7
ISO 27001A.8.7A.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.