Skip to content

Commit b18dc37

Browse files
Add instructions about quarantining on MS365
1 parent 4f7e779 commit b18dc37

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

src/content/docs/cloudflare-one/email-security/setup/pre-delivery-deployment/prerequisites/office365-email-security-mx.mdx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sidebar:
55
order: 3
66
---
77

8+
import { Render, Markdown, GlossaryTooltip } from "~/components"
9+
810
![A schematic showing where Email Security is in the life cycle of an email received](src/assets/email-security/Email_Security_O365_MXInline.png)
911

1012
In this tutorial, you will learn how to configure Microsoft Office 365 with Email Security as its MX record.
@@ -41,6 +43,64 @@ Now that the inbound connector has been configured, you will need to enable the
4143
2. Select **Automatically detect and skip the last IP address** and **Apply to entire organization**.
4244
3. Select **Save**.
4345

46+
## 3. Configure anti-spam policies
47+
48+
To configure anti-spam policies:
49+
50+
1. Open the [Microsoft 365 Defender console](https://security.microsoft.com/).
51+
2. Go to **Email & collaboration** > **Policies & rules**.
52+
3. Select **Threat policies**.
53+
4. Under **Policies**, select **Anti-spam**.
54+
5. Select the **Anti-spam inbound policy (Default)** text (not the checkbox).
55+
6. In **Actions**, scroll down and select **Edit actions**.
56+
7. Set the following conditions and actions (you might need to scroll up or down to find them):
57+
- **Spam**: *Move messages to Junk Email folder*.
58+
- **High confidence spam**: *Quarantine message*.
59+
- **Select quarantine policy**: _AdminOnlyAccessPolicy_.
60+
- **Phishing**: *Quarantine message*.
61+
- **Select quarantine policy**: _AdminOnlyAccessPolicy_.
62+
- **High confidence phishing**: *Quarantine message*.
63+
- **Select quarantine policy**: _AdminOnlyAccessPolicy_.
64+
- **Retain spam in quarantine for this many days**: Default is 15 days. Email Security recommends 15-30 days.
65+
- Select the spam actions in the above step:
66+
8. Select **Save**.
67+
68+
## 4. Create transport rules
69+
70+
To create the transport rules that will send emails with certain [dispositions](/cloudflare-one/email-security/reference/dispositions-and-attributes/#dispositions) to Email Security:
71+
72+
1. Open the new [Exchange admin center](https://admin.exchange.microsoft.com/#/homepage).
73+
2. Go to **Mail flow** > **Rules**.
74+
3. Select **Add a Rule** > **Create a new rule**.
75+
4. Set the following rule conditions:
76+
77+
- **Name**: _Email Security Deliver to Junk Email folder_.
78+
- **Apply this rule if**: *The message headers* > *includes any of these words*.
79+
- **Enter text**: `X-CFEmailSecurity-Disposition` > **Save**.
80+
- **Enter words**: ```SUSPICIOUS```, ```BULK``` > **Add** > **Save**.
81+
- **Apply this rule if**: Select **+** to add a second condition.
82+
- **And**: *The sender* > *IP address is in any of these ranges or exactly matches* > enter the egress IPs mentioned in <a href="/cloudflare-one/email-security/setup/pre-delivery-deployment/egress-ips/" target="_blank">Egress IPs</a>.
83+
- **Do the following** - _Modify the message properties_ > _Set the Spam Confidence Level (SCL)_ > _5_.
84+
85+
5. Select **Next**.
86+
6. You can use the default values on this screen. Select **Next**.
87+
7. Review your settings and select **Finish** > **Done**.
88+
8. Select the rule **Email Security Deliver to Junk Email folder** you have just created, and **Enable**.
89+
9. Select **Add a Rule** > **Create a new rule**.
90+
10. Set the following rule conditions:
91+
92+
- **Name**: *{props.five}*.
93+
- **Apply this rule if**: *The message headers* > *includes any of these words*.
94+
- **Enter text**: `X-CFEmailSecurity-Disposition` > **Save**.
95+
- **Enter words**: `MALICIOUS`, `UCE`, `SPOOF` > **Add** > **Save**.
96+
- **Apply this rule if**: Select **+** to add a second condition.
97+
- **And**: *The sender* > *IP address is in any of these ranges or exactly matches* > enter the egress IPs in the <a href="/cloudflare-one/email-security/setup/pre-delivery-deployment/egress-ips/" target="_blank">Egress IPs</a>.
98+
- **Do the following**: _Redirect the message to_ > _hosted quarantine_.
99+
11. Select **Next**.
100+
12. You can use the default values on this screen. Select **Next**.
101+
13. Review your settings and select **Finish** > **Done**.
102+
14. Select the rule *{props.five}* you have just created, and select **Enable**.
103+
44104
## Next steps
45105

46106
Now that you have completed the prerequisite steps, you can set up [MX/Inline](/cloudflare-one/email-security/setup/pre-delivery-deployment/inline-deployment-setup/) on the Cloudflare dashboard.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
inputParameters: spamQuarantinePolicy;;phishingQuarantinePolicy;;highPhishingQuarantinePolicy;;img
3+
4+
---
5+
6+
import { Image } from "astro:assets"
7+
import { Markdown } from "~/components"
8+
9+
To configure anti-spam policies:
10+
11+
1. Open the [Microsoft 365 Defender console](https://security.microsoft.com/).
12+
13+
2. Go to **Email & collaboration** > **Policies & rules**.
14+
15+
3. Select **Threat policies**.
16+
17+
4. Under **Policies**, select **Anti-spam**.
18+
19+
5. Select the **Anti-spam inbound policy (Default)** text (not the checkbox).
20+
21+
6. In **Actions**, scroll down and select **Edit actions**.
22+
23+
7. Set the following conditions and actions (you might need to scroll up or down to find them):
24+
25+
- **Spam**: *Move messages to Junk Email folder*.
26+
- **High confidence spam**: *Quarantine message*.
27+
- **Select quarantine policy**: {props.one}.
28+
- **Phishing**: *Quarantine message*.
29+
- **Select quarantine policy**: {props.two}.
30+
- **High confidence phishing**: *Quarantine message*.
31+
- **Select quarantine policy**: {props.three}.
32+
- **Retain spam in quarantine for this many days**: Default is 15 days. Email Security recommends 15-30 days.
33+
- Select the spam actions in the above step:
34+
35+
8. Select **Save**.

0 commit comments

Comments
 (0)