Email authentication
Mailgun: SPF, DKIM and DMARC
To send as your own domain from Mailgun, follow its 5 documented steps, from add the domain to verify.Last checked
Each step quotes Mailgun's documentation and links to it.
Set it up, step by step
- Add the domain
To add a domain, click the Add New Domain button.
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22 - Add the SPF include
If you already have an existing SPF record for this root domain, you cannot add another SPF record.
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22 - Add the SPF and DKIM TXT records
We will add two separate TXT records, one for SPF and one for DKIM. These are required to send and receive email with Mailgun.
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22 - Add DMARC
create a DMARC record for your sending domain(s) with your DNS provider with a minimum policy set to none.
help.mailgun.com/hc/en-us/articles/13285772266011-DMARC · read 2026-10-22 - Verify
It can take up to 24 to 48 hours for DNS changes to propagate across the internet.
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22
Quoted from Mailgun's documentation on 2026-10-22. Providers change their instructions; the linked page is the authority. What the terms mean: SPF, DKIM (DomainKeys Identified Mail), DMARC.
Check your domain now
SPF, DKIM, DMARC and MX, looked up live, with what to fix. Free; nothing about your domain is stored.
The records, at a glance
| SPF include | include:mailgun.org, added to your existing SPF record if you have one rather than a second record help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide |
|---|---|
| DKIM | A TXT record with the public key Mailgun shows for the domain help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide |
| MX records | mxa.mailgun.org and mxb.mailgun.org, needed only to receive mail through Mailgun documentation.mailgun.com/docs/mailgun/user-manual/domains/domains-verify |
| Tracking | A CNAME to mailgun.org, needed only for open, click and unsubscribe tracking documentation.mailgun.com/docs/mailgun/user-manual/domains/domains-verify |
| Subdomain | Mailgun recommends sending from a subdomain of your main domain help.mailgun.com/hc/en-us/articles/360011565514-DNS-frequently-asked-questions |
| DMARC | A record at _dmarc.<domain> with a policy of at least none help.mailgun.com/hc/en-us/articles/13285772266011-DMARC |
DMARC, whichever provider you use
- Publish one TXT record at
_dmarc.yourdomain.com, starting withv=DMARC1; p=none; rua=mailto:…to collect reports. - When reports show only your own senders, move to
p=quarantine, thenp=reject. - DMARC passes when SPF or DKIM passes and aligns with the From domain, so sign with your own domain.
Related
Outlevo runs these checks before every campaign
A sender that fails them is held, with the reason, until it is fixed.
14 days free · Your buyers in 60 seconds · Cancel anytime