Mailgun: SPF, DKIM and DMARC setup
Add these records at your DNS host, then check your domain below. The check counts SPF lookups and shows any Mailgun DKIM key it finds.
The rest of the domain
Watch this domain for changes with Sender Guard. Free for 3 domains.
Records for Mailgun
| Type | Host | Value |
|---|---|---|
| TXT | @ (or your sending subdomain) | v=spf1 include:mailgun.org ~all |
| TXT | <selector>._domainkey | shown in Mailgun → Sending → Domain settings → DNS records |
Mailgun usually sends from a subdomain such as mg.yourdomain.com; the SPF record goes on that name. Copy the DKIM selector from the dashboard into the selector box below.
DMARC. Start with v=DMARC1; p=none; rua=mailto:you@yourdomain.com at _dmarc, read the reports for a few weeks, then move to p=quarantine. Gmail and Yahoo require a DMARC record from bulk senders.
One SPF record only. If you already have one, add the include to it rather than publishing a second record.
Other checks
SPF checker DMARC checker DKIM checker MX lookup Full domain report