How do I set up SPF for Mailgun?
The main steps to set up SPF for Mailgun, from its documentation: add the SPF include and add the SPF and DKIM TXT records. Checked October 22, 2026.Last checked
Where this comes from
- Add the SPF include and Add the SPF and DKIM TXT records
help.mailgun.com/hc/en-us/articles/32884700912923-Domain-Verification-Setup-Guide · read 2026-10-22
The steps, in order
| Name | What the documentation says | Source |
|---|---|---|
| 1. 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 |
| 2. 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 |
| 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 · read 2026-10-22 |
Related questions
- How do I set up SPF for Microsoft 365?
- How do I set up SPF for SendGrid?
- How do I set up SPF for Zoho Mail?
- What does Amazon SES say about SPF include?
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.