Email Security13 min read0 views

Microsoft 365 Email Security: Advanced Configuration Guide

Step-by-step guide to hardening Microsoft 365 email security. Covers Exchange Online Protection, Defender for Office 365, anti-phishing policies, Safe Links, Safe Attachments, and 12 critical settings most admins miss.

Adebisi Oluwasoya

Adebisi Oluwasoya

Senior Security Analyst · April 24, 2026

Microsoft 365 Email Security: Advanced Configuration Guide

Key Takeaways

  • Microsoft 365 has 3 security layers: Exchange Online Protection (included in all plans), Defender for Office 365 Plan 1 (E3/Business Premium), and Defender for Office 365 Plan 2 (E5). Most companies only use the first layer and miss 40% of advanced threats.
  • Preset Security Policies in "Strict" mode catch 99.1% of malware and 97.8% of phishing — but they are set to "Standard" by default, leaving a 6% gap in phishing detection.
  • Safe Links must be configured to scan URLs at time-of-click, not just at delivery. Attackers commonly use delayed weaponization — the link is clean when delivered but redirects to malware hours later.
  • The 3 most overlooked M365 settings are: disabling auto-forwarding to external domains (blocks data exfiltration), enabling mailbox auditing for all users, and configuring anti-phishing impersonation protection for your top 20 executives.
  • Attack Simulation Training is included free in E5 and provides phishing simulations without needing a third-party tool like KnowBe4.

Microsoft 365 is the world's most used business email platform with over 345 million paid seats. It is also the most targeted — 80% of email attacks specifically target Microsoft 365 users. The good news is that M365 has powerful built-in security. The bad news is that most companies run it with default settings, leaving major gaps.

This guide walks you through every security layer in Microsoft 365 email, from basic Exchange Online Protection to advanced Defender for Office 365 configurations. Follow these steps exactly and you will block 99%+ of email-based threats without buying a third-party tool.

Understanding the 3 Security Layers

Microsoft 365 email security has three layers, each requiring a different license:

Layer Included In What It Does Detection Rate
Exchange Online Protection All plans Anti-spam, anti-malware, mail flow rules 94%
Defender Plan 1 E3, Business Premium Safe Links, Safe Attachments, anti-phishing 98.9%
Defender Plan 2 E5 Threat Explorer, AIR, Attack Simulation 99.1%

Most companies with E3 or Business Premium licenses have Defender Plan 1 available but never configure it. They are paying for advanced protection but running with only the basic layer active.

M365 Email Security Layers EOP — Exchange Online Protection All plans 94% Defender Plan 1 — Safe Links + Attachments E3 / Business Premium 98.9% Defender Plan 2 — Threat Explorer + AIR E5 99.1%
Each layer adds protection — most companies stop at EOP and miss 6% of threats

Step 1: Enable Preset Security Policies (Strict Mode)

Microsoft provides two preset security policy profiles: Standard and Strict. Your tenant defaults to Standard, which leaves gaps. Strict mode catches 97.8% of phishing versus 91.4% for Standard — a 6% gap that translates to hundreds of extra phishing emails reaching inboxes every month in a 500-person company.

How to enable Strict mode:

  1. Go to security.microsoft.com > Policies & Rules > Threat Policies
  2. Click Preset Security Policies
  3. Under "Strict protection," toggle to Enabled
  4. Assign to All recipients (or specific groups for a phased rollout)
  5. Click Save

Strict mode automatically configures optimal settings for anti-spam, anti-phishing, Safe Links, and Safe Attachments. The key difference: Strict mode quarantines suspicious emails instead of sending them to junk, and it uses a more aggressive phishing detection threshold.

Safe Links rewrites URLs in emails to route through Microsoft's scanning service. When the user clicks, Microsoft checks the URL in real-time and blocks it if it is malicious. This catches delayed weaponization attacks where the link is clean at delivery but becomes malicious hours later.

Critical Safe Links settings:

  • Scan URLs at time of click: Enabled (not just at delivery)
  • Apply to messages within the organization: Enabled (internal phishing from compromised accounts)
  • Do not rewrite URLs but check via Safe Links API: Enabled (uses native URLs for better user experience)
  • Wait for URL scanning to complete before delivering the message: Enabled
  • Apply Safe Links to Office applications: Enabled (protects links in Word, Excel, Teams)

Do not add exceptions to your Safe Links policy for "trusted" domains unless absolutely required. Attackers frequently use compromised legitimate sites to host phishing pages — a URL on sharepoint.com or google.com can still be malicious.

Step 3: Configure Safe Attachments (Sandbox Detonation)

Safe Attachments opens every email attachment in a virtual sandbox, executes it, and watches for malicious behavior before delivering to the user. This catches zero-day malware that signature-based scanning misses.

Recommended settings:

  • Action: Dynamic Delivery (deliver the email body immediately, replace attachment with placeholder until scanning completes — usually 1-2 minutes)
  • Redirect: Send detected malicious attachments to your security team mailbox for investigation
  • Apply to SharePoint, OneDrive, and Teams: Enabled (scans files uploaded to cloud storage)

Dynamic Delivery is the best balance between security and productivity. "Block" mode holds entire emails until scanning completes, which delays legitimate emails and frustrates users. Dynamic Delivery lets them read the message immediately while the attachment is being scanned.

Step 4: Configure Anti-Phishing Policies

The anti-phishing policy in Defender for Office 365 includes impersonation detection — it catches emails where attackers pretend to be specific people or domains.

Configure these settings:

User impersonation protection:

  • Add your CEO, CFO, and top 20 executives/managers by name and email
  • Action: Quarantine the message
  • Show impersonation safety tip: Enabled

Domain impersonation protection:

  • Protect your owned domains: Enabled
  • Add custom domains: Include domains of key suppliers, partners, and your law firm
  • Action: Quarantine the message

Mailbox intelligence:

  • Enable mailbox intelligence: Yes (learns communication patterns to detect impersonation)
  • Enable intelligence-based impersonation protection: Yes
  • Action: Move to junk folder (less aggressive — reduces false positives while maintaining protection)

12 Critical Settings Most Admins Miss

# Setting Where to Configure Why It Matters
1 Disable external auto-forwarding EAC > Mail flow > Rules Attackers set up forwarding to exfiltrate data silently
2 Enable mailbox audit logging PowerShell or Compliance Track who accessed what and when
3 Disable SMTP AUTH EAC > Active Users > Mail Legacy auth bypasses MFA
4 Block legacy auth protocols Entra ID > Conditional Access POP3/IMAP4 are credential theft vectors
5 Enable MFA for all users Entra ID > Security Defaults Blocks 99.9% of account compromise
6 Configure DMARC with reject DNS records Prevents domain spoofing
7 External sender tag EAC > Mail flow > Rules Visual warning for external emails
8 Enable ZAP (zero-hour auto purge) Defender > Anti-spam policies Retroactively removes delivered threats
9 Restrict who can create connectors EAC > Mail flow > Connectors Prevents bypass of security scanning
10 Alert policies for suspicious activity Compliance > Alert policies Detect unusual mail patterns
11 Report Message add-in M365 admin > Integrated apps Employees can report phishing with one click
12 Tenant Allow/Block List Defender > Policies > T/A/B List Override false positives without weakening policy

Essential Mail Flow Rules to Create

Rule 1: Block External Auto-Forwarding

Go to Exchange Admin Center > Mail flow > Rules. Create a new rule: "If the message is sent to External, and the message type is Auto-forward," set the action to "Reject the message with the explanation: External auto-forwarding is not permitted." This single rule prevents attackers from silently forwarding a compromised mailbox to their external email.

Rule 2: External Sender Warning Banner

Create a rule that prepends a disclaimer to all emails from outside your organization: "CAUTION: This email originated from outside your organization. Do not click links or open attachments unless you recognize the sender and know the content is safe." Apply to all messages except those from your trusted partner domains.

Rule 3: Executive Impersonation Alert

Create a rule that flags emails where the display name matches one of your executives but the sender domain is not your company domain. This catches the most basic BEC attacks where attackers use your CEO's name with a Gmail or look-alike address.

M365 Hardening Priority Do First (Day 1) Preset Policies → Strict MFA for all users Block external auto-forwarding Disable legacy auth protocols External sender banner DMARC with p=reject Do Next (Week 1) Safe Links — time-of-click Safe Attachments — dynamic Anti-phishing impersonation Mailbox audit logging Report Message add-in Alert policies for anomalies
Follow this priority order — Day 1 settings close the biggest gaps immediately

Using Attack Simulation Training (E5)

Microsoft 365 E5 includes Attack Simulation Training — a phishing simulation tool built directly into the Defender portal. You do not need KnowBe4 or Cofense if you have E5.

How to set up a simulation:

  1. Go to security.microsoft.com > Attack simulation training > Simulations
  2. Click Launch a simulation
  3. Choose technique: Credential Harvest, Malware Attachment, Link in Attachment, or Drive-by URL
  4. Select a payload template from Microsoft's library (100+ templates based on real attacks)
  5. Target specific users or the entire organization
  6. Set the launch date and duration
  7. Assign a training module for users who click

Run simulations monthly and review the results in the Simulation report. Track click rate, report rate, and compromised rate for each department. Microsoft provides recommended training assignments based on each user's risk profile.

Ongoing Monitoring and Threat Hunting

Security is not a one-time configuration. Review these dashboards weekly:

  • Threat Explorer (E5): Shows every threat detected and missed. Filter by phishing, malware, and BEC. Use this to understand what types of attacks target your organization.
  • Mail flow status report: Shows email volume trends, top malware families detected, and spoofing detections.
  • Compromised user alerts: Defender automatically detects and alerts on suspicious sign-in patterns, unusual mail sending, and inbox rule changes that suggest account compromise.
  • Quarantine review: Check quarantine weekly for false positives. If legitimate emails are being quarantined, add sender exceptions through the Tenant Allow/Block List — not by weakening your overall policy.

Microsoft 365 has more email security capability than most companies realize. The problem is not missing features — it is unconfigured features. Follow this guide from top to bottom, and you will have enterprise-grade email security using tools you already own and pay for.

Frequently Asked Questions

Exchange Online Protection (EOP) is included in every Microsoft 365 plan and provides basic email security — anti-spam, anti-malware, and mail flow rules. Defender for Office 365 Plan 1 adds advanced features: Safe Links (real-time URL scanning), Safe Attachments (sandboxing), and anti-phishing with impersonation detection. Plan 2 adds Threat Explorer, automated investigation, and Attack Simulation Training. EOP alone catches about 94% of threats. Adding Defender Plan 1 brings that to 99%+.

Adebisi Oluwasoya

Adebisi Oluwasoya

Senior Security Analyst

Threat Intelligence & IR

Adebisi is a CISSP-certified cybersecurity analyst with over eight years of experience in enterprise security. He specializes in threat intelligence and incident response, helping organizations detect, analyze, and neutralize advanced persistent threats. His work spans Fortune 500 companies across the financial, healthcare, and government sectors.

You Might Also Like

Free Newsletter

Stay Ahead of Cyber Threats

Get weekly cybersecurity insights and practical tips. No spam, just actionable advice to keep you safe.