1. SPF
Microsoft's value is below; Microsoft recommends ending it with -all. If your domain already has an SPF record, add include:spf.protection.outlook.com to it instead of adding a second record.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new TXT record.
-
In Name (sometimes called Host), type @ for your bare domain (a few hosts want it left empty):
Name
@ -
Set its value to:
Value
v=spf1 include:spf.protection.outlook.com -all - Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
2. DKIM
You switch DKIM on in the Microsoft Defender portal, which gives you two CNAME records to add.
- Open the DKIM page in the Microsoft Defender portal (Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM). open security.microsoft.com
- Click yourbusiness.com to open its details. If it says "No DKIM keys saved for this domain", click Create DKIM keys.
- Under Publish CNAMEs, Microsoft shows two records. Copy their values exactly as shown: they can't be worked out from your domain name.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new CNAME record.
-
In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves:
Name
selector1._domainkey - Set its value to the selector1 value from Publish CNAMEs.
- If your DNS host has a proxy or "CDN" switch for this record, turn it off: the record must point straight at its target.
- Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
- Add a new CNAME record.
-
In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves:
Name
selector2._domainkey - Set its value to the selector2 value from Publish CNAMEs.
- If your DNS host has a proxy or "CDN" switch for this record, turn it off: the record must point straight at its target.
- Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
- Back in the domain's details, once Microsoft sees both records (a few minutes, sometimes longer), turn on Sign messages for this domain with DKIM signatures.
3. DMARC
Once SPF and DKIM work, start DMARC in monitoring mode.
- Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
- Add a new TXT record.
-
In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves:
Name
_dmarc -
Set its value to:
Value
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourbusiness.com - Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
Read the reports for two to four weeks, then move to p=quarantine and later p=reject.
Common mistakes
- Building the DKIM CNAME values yourself. Domains added since May 2025 get targets like selector1-yourbusiness-com._domainkey.yourbusiness.n-v1.dkim.mail.microsoft; copy them exactly from the portal.
- Adding the DKIM records as TXT instead of CNAME.
- Typing the whole domain in the host field at a DNS host that adds it for you, so the record ends up at selector1._domainkey.yourbusiness.com.yourbusiness.com.
- Leaving Cloudflare's proxy on for the DKIM CNAMEs. They must be DNS only.
- Microsoft 365 bought through GoDaddy: make sure SPF includes spf.protection.outlook.com, not only GoDaddy's include.
The examples use yourbusiness.com: put your own domain where you see it. Our checkup fills in your real values for you.