Key takeaways
- Verify the sending domain in Mailgun, including SPF and DKIM.
- Publish a DMARC policy on the same domain.
- Set up a PTR for the sending IP if your account has a dedicated IP.
To get a 10/10 from Mail-Tester for mail sent through Mailgun, send one test message from a verified Mailgun domain to the address Mail-Tester shows you, then fix every item its report marks as not configured. Mail-Tester's FAQ says you send from your own email software to the address shown, then click Check your score, and it lists what is configured properly and what is not. A perfect score is the tool's stated goal, but it is a checklist result, not a promise about any inbox.
Research checked: 12 November 2026
This guide covers the setup steps. The cold-sending view of the same score is in a separate guide, and the troubleshooting table is in the errors guide.
The short answer
- Verify the sending domain in Mailgun, including SPF and DKIM.
- Publish a DMARC policy on the same domain.
- Set up a PTR for the sending IP if your account has a dedicated IP.
- Send the test from Mailgun to the Mail-Tester address.
- Fix each failed item in the report and resend.
Setup steps
Step 1: Verify the Mailgun domain
Mailgun's domain verification guide lists four records: SPF (TXT), DKIM (TXT), tracking (CNAME) and receiving (MX). For SPF it gives the value `v=spf1 include:mailgun.org ~all`. For DKIM, copy the value from the Domain Verification & DNS section of the control panel, because the page does not print it. Mailgun says DNS changes can take 24 to 48 hours to propagate.
Check the SPF record before you send the test:
``` dig +short TXT example.com ```
Expected output includes `"v=spf1 include:mailgun.org ~all"` in one line. If your domain already has an SPF record, merge the include into it rather than publishing a second one.
Step 2: Publish a DMARC record
Mail-Tester's report will flag a missing DMARC policy. RFC 9989 says a DMARC policy is a TXT record at `_dmarc` on your domain, and its appendix gives this example:
``` _dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-feedback@example.com" ```
Start with `p=none` so you collect reports without changing how mail is handled. Use an address you read.
Step 3: Send from Mailgun to the test address
Open Mail-Tester, copy the address it generates, and send one message from your Mailgun-connected application to that address. Use the same From domain you verified in Step 1. Then return to the page and click Check your score.
Mail-Tester's FAQ says the free allowance is three tests in 24 hours, so do not test on every edit.
Step 4: Fix each failed item
Open the report and work through the items it marks as not configured. The usual items for a Mailgun send are SPF, DKIM, DMARC and reverse DNS. For reverse DNS, check the PTR with `dig -x` on your sending IP. A forward and reverse match is what Google's sender requirements describe.
Then read the explanation attached to each item rather than only the score. Some items concern the message you sent, not your DNS, so fix those in your sending template and resend.
Verify it worked
Send a second test after your changes. The report should show the authentication items as passed and the score should increase. Confirm that the sending IP and From domain in the report match the ones you configured. A 10/10 result from a different domain tells you nothing about this one.