When we open the links sent from the software, it's going to email.mg.yourdomain.com, which is the Mailgun domain you set up for your account. It is because we need to change the links in the email for tracking statistics.
The Cname record you added when you set up in the domain provider is essential for Mailgun to track the open and click tracking, and unsubscribed.
The record for email.mg.yourdomain.com should be pointing to Mailgun.org, that's how they are able to fetch data and show the email stats.
If you are seeing this error when clicking the link: This site can't be reached / says email.mg.yourdomain.com refused to connect when you have your own Mailgun domain set up.
That means the CNAME record might not be set up properly.
- To verify that, copy the red highlighted in the image above ---> email.mg.yourdomain.com
Depending on the domain you set up with Mailgun,
For example:
If you set up mg.companyname.com,
You will look up the cname record for email.mg.companyname.com
If you set up replies.companyname.com,
You will look up the cname record for email.replies.companyname.com
If you set up support.companyname.com,
You will look up the cname record for email.support.companyname.com
- Go to MX toolbox or Whatsmydns to look up the Cname record:
MX toolbox:
Whatsmydns:
If it says DNS records not found:
login to your domain provider
Go to DNS records and check the CNAME record
4. If it is already pointing to mailgun.org:
Go to Mailgun -> Click the Sending tab on the left -> Domain Settings
Edit the Tracking Protocol
Send the email test again from the software
If the info above does not help, please get in touch with the support team of your domain provider for assistance. You can show them we need to add these records here:
If the domain provider verified all DNS records are good to go, please reach out to support.
Common issues:
1. If The CNAME record includes the root domain, it will not work here:
If you are using GoDaddy or Namecheap, be sure to omit the root domain from the record so it is email.mg only
Host name:
Depending on the domain you are trying to set up, if you are trying to set up
mg.companyname.com The host name will be email.mg
replies.companyname.com The host name will be email.replies
support.companyname.com The host name will be email.support
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article