Guides › Google Workspace + Microsoft 365 / Exchange Online

SPF record for Google Workspace + Microsoft 365 / Exchange Online

Sending from both Google Workspace and Microsoft 365 / Exchange Online? You need one SPF record that authorises both. Two separate SPF records break SPF entirely.

Publish this single TXT record at your root domain (@), replacing any existing v=spf1 record:
v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all
Total DNS lookups: 2 lookups

Google Workspace: 1 · Microsoft 365 / Exchange Online: 1 · limit: 10. Measured live.

DKIM for both

Google Workspace

TXT record at google._domainkey (default selector "google"), generated in Admin console → Apps → Gmail → Authenticate email.

Microsoft 365 / Exchange Online

Two CNAME records, selector1._domainkey and selector2._domainkey, pointing to the values shown in the Microsoft Defender portal (Email authentication settings → DKIM).

Then add DMARC

TXT record at _dmarc
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;

Verify your Google Workspace + Microsoft 365 / Exchange Online setup