Google Workspace + Mailgun SPF & DMARC Setup
Combine Google Workspace (3 lookups) with Mailgun (1 lookup) at 4/10 lookups, or isolate Mailgun onto mg.<domain>.
Combine Microsoft 365 (2 lookups) and Mailgun (1 lookup) using 3/10 DNS lookups.
v=spf1 include:spf.protection.outlook.com include:mailgun.org ~all
v=DMARC1; p=quarantine; pct=100; adkim=r; aspf=r; rua=mailto:dmarc@example.com
After publishing DNS records, run an instant Cloudflare DoH audit on ReadyCheck or grab the $49 Fix Pack for custom DKIM, MTA-STS, BIMI & AEO deployment.
| Provider | Root Include | Lookups | DKIM Selector |
|---|---|---|---|
| Microsoft 365 | include:spf.protection.outlook.com |
2 | selector1._domainkey & selector2._domainkey |
| Mailgun | include:mailgun.org |
1 | mx._domainkey / krs._domainkey |
Combine Google Workspace (3 lookups) with Mailgun (1 lookup) at 4/10 lookups, or isolate Mailgun onto mg.<domain>.
Run Microsoft 365 Exchange Online (2 lookups) with SendGrid (1 lookup) at just 3/10 lookups.
Combine Microsoft 365 (2 lookups) and Postmark (1 lookup) at 3/10 lookups with clean strict-ready DKIM alignment.
Authorize Microsoft 365 (2 lookups) and Amazon SES (1 lookup) using 3/10 RFC 7208 DNS lookups.
Pair Microsoft 365 (2 lookups) with Mailchimp (2 lookups) for a balanced 4/10 lookup SPF configuration.
Connect Microsoft 365 (2 lookups) with Zendesk Support (2 lookups) at 4/10 lookups.
This stack consumes 3 of the 10 permitted RFC 7208 root DNS lookups (7 remaining). All active includes are merged into a single v=spf1 TXT record.
Start with relaxed alignment (adkim=r, aspf=r) and p=quarantine at pct=100 while verifying DKIM keys across Microsoft 365 and Mailgun.
Most modern mail security teams pair ~all or -all with DMARC p=quarantine/reject. Use ~all during rollout to avoid dropping legitimate forwarded mail, then tighten to -all once rua reports confirm 100% pass rates.