Skip to content

Commit 7d643b3

Browse files
[Email Security] Add secure mail flow
1 parent 16f7f73 commit 7d643b3

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,24 @@ If desired, you can create a separate quarantine for each of the dispositions.
6464

6565
## 4. Set up MX/Inline
6666

67-
<Render file="email-security/deployment/set-up-mx-inline-step"/>
67+
<Render file="email-security/deployment/set-up-mx-inline-step"/>
68+
69+
## 5. Secure your mail flow
70+
71+
:::note
72+
This step should be performed after 72 hours for DNS propagation.
73+
:::
74+
75+
After 72 hours, the MX record DNS update will have sufficiently propagated across the Internet. It is now safe to secure your email flow. This will ensure that Google only accepts messages that are first received by Email Security. This step is highly recommended to prevent threat actors from using cached MX entries to bypass Email Security by injecting messages directly into Gmail.
76+
77+
To secure your mail flow:
78+
79+
1. In the [Google Administrative Console](https://admin.google.com/), go to **Apps** > **Google Workspace** > **Gmail**.
80+
81+
2. Select **Spam, Phishing and Malware**.
82+
83+
3. Go to **Inbound gateway** and select **Edit Inbound gateway**.
84+
85+
4. Enable **Reject all mail not from gateway IPs** and select **Save**.
86+
87+
5. Select **Save** once more to commit and activate the configuration change in the Gmail advanced configuration console.

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

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,45 @@ To create the transport rules that will send emails with certain [dispositions](
105105

106106
## 5. Set up MX/Inline
107107

108-
<Render file="email-security/deployment/set-up-mx-inline-step"/>
108+
<Render file="email-security/deployment/set-up-mx-inline-step"/>
109+
110+
## 6. (Recommended) Secure Microsoft 365 from MX records bypass
111+
112+
One method of DNS attacks is to search for old MX records and send <GlossaryTooltip term="phishing">phishing</GlossaryTooltip> emails directly to the mail server. To secure the email flow, you will want to enforce an email flow where inbound messages are accepted by Office 365 only when they originate from Email Security. This can be done by adding a connector to only allow email from Email Security with TLS encryption. This step is optional but recommended.
113+
114+
:::caution[Important]
115+
This step should be performed 72 hours after all domains (excluding your `<on_microsoft.com>` domain) in your Microsoft 365 organization have been onboarded to Email Security, and Email Security is their MX record. If a domain has not been onboarded or DNS is still propagating, you will impact production email flow for that domain.
116+
:::
117+
118+
#### Create Connector
119+
120+
1. Go to the new [Exchange admin center](https://admin.exchange.microsoft.com/#/homepage).
121+
122+
2. Go to **Mail flow** > **Connectors**.
123+
124+
3. Select **Add a connector**.
125+
126+
4. Go to **Connection from** > **Partner organization**.
127+
128+
5. Select **Next**.
129+
130+
6. Set the following options:
131+
132+
- **Name** - `Secure M365 Inbound`
133+
- **Description** - `Only accept inbound email from Email Security`
134+
135+
7. Select **Next**.
136+
137+
8. Make sure **By Verifying that the sender domain matches one of the following domains** is selected.
138+
139+
9. Enter `*` in the text field, and select **+**.
140+
141+
10. Select **Next**.
142+
143+
11. Make sure **Reject email messages if they aren't sent over TLS** is selected.
144+
145+
12. Still in the same screen, select **Reject email messages if they aren't sent from within this IP address range**, and enter all the egress IPs in the [Egress IPs](/cloudflare-one/email-security/setup/pre-delivery-deployment/egress-ips/) page.
146+
147+
13. Select **Next**.
148+
149+
14. Review your settings and select **Create connector**.

0 commit comments

Comments
 (0)