Guide · Microsoft 365

SPF, DKIM and DMARC for Microsoft 365

Microsoft 365 doesn't sign your domain's email with DKIM until you switch it on, and since May 2025 the DKIM records have a new format that you must copy, not guess. Here's the whole setup in order.

Microsoft 365 steps checked against Microsoft 365's own help pages on 22 Nov 2026 · Microsoft 365's own help page

Check your domain first: the checkup shows exactly which of these steps you still need.

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.

  1. Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
  2. Add a new TXT record.
  3. In Name (sometimes called Host), type @ for your bare domain (a few hosts want it left empty): Name@
  4. Set its value to: Valuev=spf1 include:spf.protection.outlook.com -all
  5. 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.

  1. Open the DKIM page in the Microsoft Defender portal (Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM). open security.microsoft.com
  2. Click yourbusiness.com to open its details. If it says "No DKIM keys saved for this domain", click Create DKIM keys.
  3. Under Publish CNAMEs, Microsoft shows two records. Copy their values exactly as shown: they can't be worked out from your domain name.
  4. Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
  5. Add a new CNAME record.
  6. In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves: Nameselector1._domainkey
  7. Set its value to the selector1 value from Publish CNAMEs.
  8. If your DNS host has a proxy or "CDN" switch for this record, turn it off: the record must point straight at its target.
  9. Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
  10. Add a new CNAME record.
  11. In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves: Nameselector2._domainkey
  12. Set its value to the selector2 value from Publish CNAMEs.
  13. If your DNS host has a proxy or "CDN" switch for this record, turn it off: the record must point straight at its target.
  14. Save. Most changes show within an hour. Then check your domain with the box at the top of this page.
  15. 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.

  1. Log in to your DNS host, where your domain's DNS records are managed, and open yourbusiness.com.
  2. Add a new TXT record.
  3. In Name (sometimes called Host), type only this; most DNS hosts add your domain themselves: Name_dmarc
  4. Set its value to: Valuev=DMARC1; p=none; rua=mailto:dmarc-reports@yourbusiness.com
  5. 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.