Guides › Microsoft 365 / Exchange Online + Salesforce
SPF record for Microsoft 365 / Exchange Online + Salesforce
Sending from both Microsoft 365 / Exchange Online and Salesforce? 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.protection.outlook.com include:_spf.salesforce.com ~all
Total DNS lookups: 3 lookups
Microsoft 365 / Exchange Online: 1 · Salesforce: 2 · limit: 10. Measured live.
DKIM for both
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).
Salesforce
Create a DKIM key in Setup → DKIM Keys; Salesforce gives you two CNAME records.
Then add DMARC
TXT record at _dmarc
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;