|
5 | 5 | order: 3 |
6 | 6 | --- |
7 | 7 |
|
| 8 | +import { Render, Markdown, GlossaryTooltip } from "~/components" |
| 9 | + |
8 | 10 |  |
9 | 11 |
|
10 | 12 | 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 |
41 | 43 | 2. Select **Automatically detect and skip the last IP address** and **Apply to entire organization**. |
42 | 44 | 3. Select **Save**. |
43 | 45 |
|
| 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 | + |
44 | 104 | ## Next steps |
45 | 105 |
|
46 | 106 | 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. |
0 commit comments