DMARC for email delivery services
Mailgun verifies a sending domain with an SPF TXT record, a DKIM record from its control panel (TXT, or CNAME with Automatic Sender Security), two MX records and a tracking CNAME.
v=spf1 include:mailgun.org ~allIf that domain already has an SPF record, merge the include into it.
<selector>._domainkey.<your sending domain> TXT or CNAME (type and value from Domain Verification & DNS)Mailgun's page does not give a fixed selector, so copy it from your panel and use that value in the DKIM check.
mxa.mailgun.orgmxb.mailgun.orgemail.<your sending domain> CNAME mailgun.org (EU domains: eu.mailgun.org)Values in angle brackets are specific to your account. Copy the real ones from Mailgun rather than from this page.
v=DMARC1; p=none; rua=mailto:<your-business-id>@mail.yourdmarc.online, or build it with the DMARC generator. Delivery does not change at this stage.p=quarantine when your legitimate mail passes, and watch the reports for anything you missed.p=reject with sp=reject. Read the enforcement guide for what tends to break, and keep monitoring afterwards.Taken from Mailgun's own documentation, checked on 1 November 2026. Providers change these, so their setup screen wins over this page.
Check a real message against the Gmail, Yahoo and Outlook.com sender rules, or test whether a stranger can send mail as your domain. Both are free.
v=spf1 include:mailgun.org ~all, published as: TXT on the domain you added to Mailgun. If that domain already has an SPF record, merge the include into it.
Shown per domain in the Mailgun control panel. Mailgun's page does not give a fixed selector, so copy it from your panel and use that value in the DKIM check.
Only once a passing SPF or DKIM result is on your From domain or its organizational domain. The MX records route inbound mail for that domain to Mailgun. Publishing them on a domain that already receives mail would redirect it, so use a dedicated subdomain.
Start at p=none with a rua address, finish the Mailgun setup, then read your reports. Make sure your From address is on the verified Mailgun domain or its parent, then confirm the aligned pass in your reports. Move to p=quarantine, then p=reject, once your legitimate mail passes.
Download to read the eBook