Key takeaways
- Start with dig +short MX <name> on the exact name that receives mail.
- If the answer is missing or lists the wrong hosts, fix DNS.
- If the answer is correct but mail is not stored, check the receiving route in Mailgun.
When Mailgun receiving breaks, the cause is usually one of four things: the MX pair is not published where you think, the root domain's mail was moved without anyone noticing, a conflicting record blocks the change, or the address has no route. The table below pairs each symptom with a check and a fix. Use `dig` for every check, because the control panel shows what you entered, not what the internet sees.
Research checked: 12 November 2026
The short answer
Start with `dig +short MX <name>` on the exact name that receives mail. If the answer is missing or lists the wrong hosts, fix DNS. If the answer is correct but mail is not stored, check the receiving route in Mailgun. If existing mail to the domain stopped arriving, the record is probably at the root, so check that first.
Symptom table
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Empty MX answer | Record at the wrong name, or not yet propagated | `dig +short MX <name>` returns nothing | Publish at the receiving name; allow up to 48 hours |
| Mailbox stopped receiving | Root MX changed to Mailgun | Compare current MX with the saved answer | Restore the old MX or forward from Mailgun |
| Answer lists old hosts | Stale cache or record not replaced | Query two resolvers and compare TTLs | Wait out the TTL; remove the old MX rather than adding a second set |
| Priority mismatch | One host set to a different priority | Read the priority column | Set both `mxa` and `mxb` to priority 10 |
| Change refused or inconsistent | CNAME or A record already at the same name | `dig +short <name>` and `dig +short CNAME <name>` | Remove the conflicting record; a name with a CNAME cannot hold other data |
| Mail reaches Mailgun, nothing stored | No receiving route matches | Check routes in the control panel for the address | Add a route for that address or pattern |
| Bounce from the sender | Receiving path failed or inbox full | Check the bounce text and the MX answer | Fix the path, then resend if the message is still wanted |
Symptoms in detail
Symptom 1: The MX answer is empty
Mailgun's verification guide lists the MX pair as receiving records, and says DNS changes can take 24 to 48 hours to fully propagate. An empty answer in the first hour usually means propagation, but an empty answer after a day means the record is missing or on a different name. Check the name character by character, including whether your DNS host added the domain again.
Symptom 2: Existing mail stopped arriving
This is the most serious failure. It happens when the MX pair is placed on the root domain. Every inbound message for that domain then goes to Mailgun. Run `dig +short MX example.com` and compare it with the answer you saved before the change. If you did not save one, check your DNS history or the mail host's own settings for the original target, and restore it.
Symptom 3: The answer shows the old hosts
Resolvers cache MX answers for the record's TTL. Lower the TTL before a planned change, and during an incident wait for the cache to expire. Do not add the Mailgun pair alongside the old hosts without a plan. Two sets of MX records at the same priority can split inbound mail between two systems you did not intend to run together.
Symptom 4: The priorities do not match
Mailgun's documented pair uses priority 10 for both hosts. A different priority on one host changes the order receivers try them in, and it can look like intermittent receiving. Copy both records exactly.
Symptom 5: The change is refused
DNS does not allow a CNAME alongside other records at the same name. If a CNAME already exists at the receiving name, the MX records cannot be published there. Remove the CNAME only if you know nothing depends on it. Check first with `dig +short CNAME <name>`.
Symptom 6: DNS is correct, but nothing is stored
The MX records only deliver the message to Mailgun. Mailgun then needs a receiving route that matches the address. If no route matches, the message is not handled. Open the routes in the control panel, confirm the pattern, and send a test to that address.