Skip to content

Commit 6ed2a6a

Browse files
authored
Merge pull request #5081 from MicrosoftDocs/chrisda
Update email-authentication-spf-configure.md
2 parents 9f72536 + 7a95cfc commit 6ed2a6a

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

defender-office-365/email-authentication-spf-configure.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ f1.keywords:
55
author: chrisda
66
ms.author: chrisda
77
manager: bagol
8-
ms.date: 07/24/2025
8+
ms.date: 09/17/2025
99
audience: ITPro
1010
ms.topic: how-to
1111

@@ -48,7 +48,7 @@ Before we get started, here's what you need to know about SPF in Microsoft 365 b
4848
> [!TIP]
4949
> 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).
5050
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).
5252

5353
- **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.
5454

@@ -127,43 +127,56 @@ Important points to remember:
127127
> [!TIP]
128128
> 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.
129129
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 365 email only
131131

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)**:
133135

134136
```text
135137
v=spf1 include:spf.protection.outlook.com -all
136138
```
137139

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)**:
139141

140142
```text
141143
v=spf1 include:spf.protection.office365.us -all
142144
```
143145

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**:
145147

146148
```text
147149
v=spf1 include:spf.protection.partner.outlook.cn -all
148150
```
149151

150-
- **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.
151155

152-
**SPF TXT record for contoso.net**:
156+
- **SPF TXT record for contoso.net**:
153157

154158
```txt
155159
v=spf1 -all
156160
```
157161

158-
**SPF TXT record for contoso.org**:
162+
- **SPF TXT record for contoso.org**:
159163

160164
```txt
161165
v=spf1 -all
162166
```
163167

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.
167180

168181
**SPF TXT record for contoso.com**:
169182

0 commit comments

Comments
 (0)