All articles
    Deliverability

    Mailgun Custom Tracking Domain Errors and Fixes: Troubleshooting Guide

    Most tracking problems in Mailgun trace back to the tracking CNAME: it is missing, points somewhere other than mailgun.org, sits at a name that already…

    VeriMailX Team November 23, 2026 4 min read

    Key takeaways

    • Check the CNAME with dig +short CNAME <tracking hostname> and confirm the answer is mailgun.org.
    • If it is, look at the domain's tracking settings and the per-message flags.
    • If it is not, fix DNS and wait for propagation, which Mailgun's verification guide says can take 24 to 48 hours.

    Most tracking problems in Mailgun trace back to the tracking CNAME: it is missing, points somewhere other than `mailgun.org`, sits at a name that already holds other records, or was changed after links were sent. The table below pairs each symptom with the check that separates the causes. Run the DNS checks first, because the control panel can show a record as entered even when the public answer is wrong.

    Research checked: 12 November 2026

    The short answer

    Check the CNAME with `dig +short CNAME <tracking hostname>` and confirm the answer is `mailgun.org`. If it is, look at the domain's tracking settings and the per-message flags. If it is not, fix DNS and wait for propagation, which Mailgun's verification guide says can take 24 to 48 hours.

    Symptom table

    SymptomLikely causeCheckFix
    Links go to the original destination, not trackedClick tracking off, or the flag is off for this messageTracking Settings; message source for rewritten linksEnable tracking for the domain or the message
    Links show a hostname that does not resolveTracking CNAME missing or not propagated`dig +short CNAME <hostname>` returns nothingPublish the CNAME; wait for propagation
    Links point to an unexpected hostCNAME target is not `mailgun.org`Read the CNAME answer exactlyCorrect the target
    CNAME refused or inconsistentOther records already at the same name`dig +short <hostname>` and `dig +short TXT <hostname>`Remove the conflicting record if nothing depends on it
    Opens not recordedPlain-text-only message, or images blockedCheck the message has an HTML partSend an HTML version; do not expect every open
    HTTPS tracking failsCertificate could not be issuedThe CNAME resolves correctly to `mailgun.org`Confirm the CNAME first, then retry the HTTPS switch
    Tracking works on one domain, not anotherSetting or CNAME applied to the wrong domainCompare the domain on each message's logsApply the setting to the sending domain

    Symptoms in detail

    Tracking is applied per domain in Tracking Settings, and a per-message flag can override it. Check the message source for the rewritten URL. If the link is unchanged, first confirm the domain setting, then check whether the message was sent with a flag that turns tracking off.

    Symptom 2: The tracking hostname does not resolve

    Run `dig +short CNAME email.example.com` for your hostname. An empty answer means the record is missing at that name, or the name has a typo. A DNS host that appends the domain automatically can also create `email.example.com.example.com`. Enter only the left-hand part of the name, following the format of your existing records.

    Symptom 3: The CNAME points to the wrong target

    The target for tracking is `mailgun.org`. A CNAME to any other host sends clicks to that host. Read the answer exactly, including the trailing dot. If a previous setup pointed the same name elsewhere, replace the record and wait out the TTL before you assume the fix has taken effect.

    Symptom 4: The change is refused

    A CNAME cannot coexist with other record types at the same name. If the hostname already has an A, TXT or MX record, the CNAME will not publish cleanly. Check every type with `dig`. Remove the conflicting record only after confirming nothing depends on it.

    Symptom 5: Opens are missing

    Mailgun's open tracking documentation states that plain-text-only emails do not track opens, because the tracking image needs an HTML component. It also notes that many providers block images by default, so an open only registers when the recipient displays images. Missing opens are therefore expected for some messages. Test with an HTML message and a mail client that loads images before concluding it is broken.

    Symptom 6: HTTPS tracking will not enable

    Mailgun's tracking documentation says that switching to HTTPS generates a Let's Encrypt certificate for the tracking domain. Issuing that certificate depends on the hostname resolving to Mailgun. If the CNAME is not correct, the certificate cannot be issued. Fix the CNAME, confirm it with `dig`, then retry. Keep HTTP working while you wait, so links in live messages keep resolving.

    Symptom 7: Tracking works for one domain only

    Each sending domain has its own tracking settings. A setting applied to a different domain will not affect the one you are sending from. Compare the domain shown in the logs for a failing message with the domain where you enabled tracking.

    Frequently asked questions

    Keep reading

    Comparisons

    Instantly vs Smartlead: How to Choose a Cold Email Platform

    Instantly and Smartlead both support cold email campaigns across multiple sending accounts. The better choice depends on your contact limits, sending volume, reply workflow, and the cost of the features you actually need. Start

    Read
    Comparisons

    Instantly vs Smartlead Deliverability: How to Compare Inbox Placement

    Neither Instantly nor Smartlead can guarantee that a cold email reaches the inbox. Both provide tools for managing outreach, but inbox placement also depends on your sending domain, authentication, recipient list, message and the

    Read
    Comparisons

    Instantly vs Smartlead Pricing: Compare the Real Cost of Outreach

    The headline subscription is only one part of a cold email budget. The right comparison includes sending limits, contact storage, mailboxes, lead data, verification and any tools needed for your team. A cheaper entry plan can

    Read