Guides › Microsoft 365 / Exchange Online + SendGrid (Twilio)

SPF record for Microsoft 365 / Exchange Online + SendGrid (Twilio)

Sending from both Microsoft 365 / Exchange Online and SendGrid (Twilio)? 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:sendgrid.net ~all
Total DNS lookups: 3 lookups

Microsoft 365 / Exchange Online: 1 · SendGrid (Twilio): 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).

SendGrid (Twilio)

With automated security on, SendGrid gives you CNAMEs for s1._domainkey and s2._domainkey plus a return-path CNAME (which handles SPF for you).

Then add DMARC

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

Verify your Microsoft 365 / Exchange Online + SendGrid (Twilio) setup