5 - Junk email folder and administrative quarantine
In this tutorial, you will learn to deliver SUSPICIOUS
and BULK
messages to the user’s junk email folder, and MALICIOUS
, SPAM
, and SPOOF
messages to the Administrative Quarantine (this requires an administrator to release the emails).
You first need to configure the domains you are onboarding on the Email Security (formerly Area 1) dashboard. To configure your domains:
- Log in to the Email Security dashboard ↗.
- Go to Settings (the gear icon).
- Go to Email configuration > Domains & Routing > Domains.
- Make sure each domain you are onboarding has been added.
- For each domain you are configuring, select … > Edit, and set the following options:
- Domain -
<YOUR_DOMAIN>
. - Configured as -
MX Records
. - Forwarding to - This should match the expected MX record for each domain in your Office 365 account ↗.
- IP Restrictions - Leave this field empty.
- Outbound TLS -
Forward all messages over TLS
. - Quarantine Policy - Do not check any dispositions.
- Domain -
To configure anti-spam policies:
-
Open the Microsoft 365 Defender console ↗.
-
Go to Email & collaboration > Policies & rules.
-
Select Threat policies.
-
Under Policies, select Anti-spam.
-
Select the Anti-spam inbound policy (Default) text (not the checkbox).
-
In Actions, scroll down and select Edit actions.
-
Set the following conditions and actions (you might need to scroll up or down to find them):
- Spam: Move messages to Junk Email folder.
- High confidence spam: Quarantine message.
- Select quarantine policy: _AdminOnlyAccessPolicy_.
- Phishing: Quarantine message.
- Select quarantine policy: _AdminOnlyAccessPolicy_.
- High confidence phishing: Quarantine message.
- Select quarantine policy: _AdminOnlyAccessPolicy_.
- Retain spam in quarantine for this many days: Default is 15 days. Email Security (formerly Area 1) recommends 15-30 days.
-
Select Save.
To create the transport rules that will send emails with certain dispositions to Email Security:
-
Open the new Exchange admin center ↗.
-
Go to Mail flow > Rules.
-
Select Add a Rule > Create a new rule.
-
Set the following rule conditions:
- Name: Email Security Deliver to Junk Email folder`.
- Apply this rule if: The message headers > includes any of these words.
- Enter text:
X-Area1Security-Disposition
> Save. - Enter words:
`SUSPICIOUS`, `BULK`
> Add > Save.
- Enter text:
- Apply this rule if: Select + to add a second condition.
- And: The sender > IP address is in any of these ranges or exactly matches > enter the egress IPs in the Egress IPs page.
- Do the following - _Modify the message properties_ > _Set the Spam Confidence Level (SCL)_ > _5_.
-
Select Next.
-
You can use the default values on this screen. Select Next.
-
Review your settings and select Finish > Done.
-
Select the rule Email Security Deliver to Junk Email folder` you have just created, and Enable.
-
Select Add a Rule > Create a new rule.
-
Set the following rule conditions:
- Name: `Area 1 Admin Managed Host Quarantine`.
- Apply this rule if: The message headers > includes any of these words.
- Enter text:
X-Area1Security-Disposition
> Save. - Enter words: `MALICIOUS`, `UCE`, `SPOOF` > Add > Save.
- Enter text:
- Apply this rule if: Select + to add a second condition.
- And: The sender > IP address is in any of these ranges or exactly matches > enter the egress IPs in the Egress IPs page.
- Do the following: _Redirect the message to_ > _hosted quarantine_.
-
Select Next.
-
You can use the default values on this screen. Select Next.
-
Review your settings and select Finish > Done.
-
Select the rule `Area 1 Admin Managed Host Quarantine` you have just created, and select Enable.