How do I set up SPF, DKIM and DMARC for Mailgun?
The main steps to set up SPF, DKIM and DMARC for Mailgun, from its documentation: add the domain, add the SPF include, add the SPF and DKIM TXT records, add DMARC and verify. Checked October 22, 2026.Last checked
Where this comes from
- Add the domain, Add the SPF include, Add the SPF and DKIM TXT records and Verify
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22 - Add DMARC
help.mailgun.com/hc/en-us/articles/13285772266011-DMARC · read 2026-10-22
The steps, in order
| Name | What the documentation says | Source |
|---|---|---|
| 1. 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 |
| 2. 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 |
| 3. 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 |
| 4. 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 |
| 5. 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 |
Related questions
- How do I set up SPF, DKIM and DMARC for Mailchimp?
- How do I set up SPF, DKIM and DMARC for Microsoft 365?
- How do I set up SPF, DKIM and DMARC for Postmark?
- How do I set up SPF, DKIM and DMARC for SendGrid?
Mailgun email authentication guide →
Built from public pages on the dates shown. Prices and features change, so check the source before you buy. Outlevo sells outbound software and is not affiliated with the companies named unless the page says so.