You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: defender-office-365/email-authentication-spf-configure.md
+25-12Lines changed: 25 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ f1.keywords:
5
5
author: chrisda
6
6
ms.author: chrisda
7
7
manager: bagol
8
-
ms.date: 07/24/2025
8
+
ms.date: 09/17/2025
9
9
audience: ITPro
10
10
ms.topic: how-to
11
11
@@ -48,7 +48,7 @@ Before we get started, here's what you need to know about SPF in Microsoft 365 b
48
48
> [!TIP]
49
49
> Email authentication protection for _undefined_ subdomains is covered by DMARC. Any subdomains (defined or not) inherit the DMARC settings of the parent domain (which can be overridden per subdomain). For more information, see [Set up DMARC to validate the From address domain for cloud senders](email-authentication-dmarc-configure.md).
50
50
51
-
-**If you own registered but unused domains**: If you own registered domains that aren't used for email or anything at all (also known as _parked domains_), configure SPF TXT records to indicate that no email should ever come from those domains as described later in this article.
51
+
-**If you own registered but unused domains**: If you own registered domains that aren't used for email or anything at all (also known as _parked domains_), configure SPF TXT records to indicate that no email should ever come from those domains as described [later in this article](#scenario-parked-domains).
52
52
53
53
-**SPF alone is not enough**. For the best level of email protection for your custom domains, you also need to configure DKIM and DMARC as part of your overall [email authentication](email-authentication-about.md) strategy. For more information, see the [Next Steps](#next-steps) section at the end of this article.
54
54
@@ -127,43 +127,56 @@ Important points to remember:
127
127
> [!TIP]
128
128
> As previously mentioned in this article, you create the SPF TXT record for a domain or subdomain at the domain registrar for the domain. No SPF TXT record configuration is available in Microsoft 365.
129
129
130
-
-**Scenario**: You use contoso.com for email in Microsoft 365, and Microsoft 365 is the only source of email from contoso.com.
130
+
### Scenario: Microsoft 365email only
131
131
132
-
**SPF TXT record for contoso.com in Microsoft 365 and Microsoft 365 Government Community Cloud (GCC)**:
132
+
You use contoso.com for email in Microsoft 365, and Microsoft 365 is the only source of email from contoso.com
133
+
134
+
-**SPF TXT record for contoso.com in Microsoft 365 and Microsoft 365 Government Community Cloud (GCC)**:
133
135
134
136
```text
135
137
v=spf1 include:spf.protection.outlook.com -all
136
138
```
137
139
138
-
**SPF TXT record for contoso.com in Microsoft 365 Government Community Cloud High (GCC High) and Microsoft 365 Department of Defense (DoD)**:
140
+
-**SPF TXT record for contoso.com in Microsoft 365 Government Community Cloud High (GCC High) and Microsoft 365 Department of Defense (DoD)**:
139
141
140
142
```text
141
143
v=spf1 include:spf.protection.office365.us -all
142
144
```
143
145
144
-
**SPF TXT record for contoso.com in Microsoft 365 operated by 21Vianet**
146
+
-**SPF TXT record for contoso.com in Microsoft 365 operated by 21Vianet**:
-**Scenario**: You use contoso.com for email in Microsoft 365, and you already configured the SPF TXT record in contoso.com with all sources of email from the domain. You also own the domains contoso.net and contoso.org, but you don't use them for email. You want to specify that no one is authorized to send email from contoso.net or contoso.org.
152
+
### Scenario: Parked domains
153
+
154
+
You own the domains contoso.net and contoso.org, but you don't use them for email. You want to specify no one is authorized to send email from contoso.net or contoso.org.
151
155
152
-
**SPF TXT record for contoso.net**:
156
+
-**SPF TXT record for contoso.net**:
153
157
154
158
```txt
155
159
v=spf1 -all
156
160
```
157
161
158
-
**SPF TXT record for contoso.org**:
162
+
-**SPF TXT record for contoso.org**:
159
163
160
164
```txt
161
165
v=spf1 -all
162
166
```
163
167
164
-
-**Scenario**: You use contoso.com for email in Microsoft 365. You plan on sending mail from the following sources:
165
-
- An on-premises email server with the external email address of 192.168.0.10. Because you have direct control over this email source, we consider it OK to use the server for senders in the contoso.com domain.
166
-
- The Adatum bulk mailing service. Because you don't have direct control over this email source, we recommend using a subdomain, so you create marketing.contoso.com for that purpose. According to the Adatum service documentation, you need to add `include:servers.adatum.com` to the SPF TXT record for your domain.
168
+
> [!NOTE]
169
+
> As previously mentioned in this article, each subdomain requires its own SPF TXT record. For parked domains, it's virtually impossible to guess which subdomains might be needed. **If** the domain registrar supports wildcard records, you can use the following syntax to specify no one is authorized to send email from any subdomains of the parked domain:
170
+
>
171
+
> **Hostname**: `_*.contoso.net` or `_*.contoso.org`<br/>
172
+
> **TXT value**: `v=spf1 -all`
173
+
174
+
### Scenario: Microsoft 365 email with on-premises email and a non-Microsoft email service
175
+
176
+
You use contoso.com for email in Microsoft 365. You plan on sending mail from the following sources:
177
+
178
+
- An on-premises email server with the external email address of 192.168.0.10. Because you have direct control over this email source, we consider it OK to use the server for senders in the contoso.com domain.
179
+
- The Adatum bulk mailing service. Because you don't have direct control over this email source, we recommend using a subdomain, so you create marketing.contoso.com for that purpose. According to the Adatum service documentation, you need to add `include:servers.adatum.com` to the SPF TXT record for your domain.
0 commit comments