Postmark & SendGrid SPF, DKIM & Custom Return-Path Guide

Modern CNAME-based domain authentication for Postmark and SendGrid — achieve full DMARC alignment without bloating your root SPF record.

CNAME Return-PathZero Root SPF NeededAutomated Key Rotation

Copy-Ready DNS Records & Configuration

Host / NameTypeValueTTLPurpose
pm-bounces CNAME pm.mtasv.net 3600 Postmark Custom Return-Path (replaces root include:spf.mtasv.net)
202601pm._domainkey TXT k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4... 3600 Postmark DKIM TXT record
em1234 CNAME u123456.wl123.sendgrid.net 3600 SendGrid Automated Security Return-Path CNAME
s1._domainkey CNAME s1.domainkey.u123456.wl123.sendgrid.net 3600 SendGrid DKIM selector 1 (plus s2._domainkey)

Interactive SPF, DKIM, DMARC & CAA Record Builder

Select Email Providers (Lookup Weight Shown)

1. SPF TXT Record (Host: @)


      
2. DMARC TXT Record (Host: _dmarc)


      
3. DKIM TXT Record Template


      
4. Complete BIND Zone Snippet (SPF + DMARC + CAA)

    

Step-by-Step Deployment Checklist

  1. In Postmark -> Sender Signatures -> DNS Settings, add the DKIM TXT record and `pm-bounces` CNAME Custom Return-Path.
  2. In SendGrid -> Settings -> Sender Authentication -> Authenticate Your Domain, keep **Automated Security = ON** to get 3 CNAME records (`emXXXX`, `s1._domainkey`, `s2._domainkey`).
  3. Leave root `@` SPF free of `include:sendgrid.net` and `include:spf.mtasv.net` once CNAME Return-Path is active, saving 2 valuable DNS lookups.
  4. Set all CNAME records to DNS Only (unproxied) in Cloudflare.

Common Pitfalls to Avoid

JetBrains SQL Explain Lens + Gumroad

Shipping Production SaaS? Harden Your Email Auth & Database Queries Together

Inspect slow queries inside IntelliJ/DataGrip with SQL Explain Lens and accelerate launches with our Gumroad developer workflow bundles.

Frequently Asked Questions

Do I still need include:sendgrid.net in my root SPF record?

Not if you use SendGrid Automated Security (CNAME domain authentication), because SendGrid delegates SPF evaluation to the `emXXXX` Return-Path CNAME.

Does Postmark require root SPF include:spf.mtasv.net?

Only if you do not configure Postmark's Custom Return-Path CNAME (`pm-bounces`). With Custom Return-Path enabled, root SPF include is unnecessary.

Can I run Postmark for transactional and SendGrid for marketing on the same domain?

Yes! Use separate subdomains (e.g. `mail.yourdomain.com` vs `news.yourdomain.com`) or distinct DKIM selectors so neither interferes with the other.

Related DNS & Email Auth Guides