SPF, DKIM and DMARC for Microsoft 365
1. SPF
Add include:spf.protection.outlook.com to your SPF record. If you already have one, add it before the ~all/-all at the end; do not publish a second record.
v=spf1 include:spf.protection.outlook.com ~all
Microsoft documents include:spf.protection.office365.us for GCC High and DoD, and include:spf.protection.partner.outlook.cn for Office 365 operated by 21Vianet.
Source: Microsoft 365 SPF documentation
2. DKIM
Publish CNAME records for selector1._domainkey and selector2._domainkey using the values Microsoft shows for your domain, then turn on DKIM signing in the Microsoft Defender portal (Email authentication settings > DKIM).
Selector(s) named in the docs: selector1, selector2. Enter them as DKIM selectors when you check your domain.
Source: Microsoft 365 DKIM documentation
3. DMARC
DMARC is a record you publish yourself; it covers all services that send as your domain. Start with monitoring:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;
Publish it as a TXT record named _dmarc. When reports show your mail passes, move to quarantine and then reject. Build yours.
4. Check it
After the records are live, check your domain to confirm SPF stays within 10 DNS lookups and DKIM is found.
Provider docs change. If something here no longer matches, follow the provider's page and tell us at support@shieldbyte.app.