I’m new to Mailgun and having trouble with MX records. The docs don’t say what hostname to use, so I tried my domain name (example.com). But it’s not working. My TXT and CNAME records are fine, but the MX records won’t verify.
Can someone tell me what hostname I should use for the MX records? I’ve double-checked everything else, but I’m stuck on this part.
Here’s what I’ve done so far:
Current setup:
Domain: example.com
MX records: mx.mailgun.org (tried with example.com as hostname)
TXT and CNAME: Verified
MX: Not verified
Any help would be great. I’m not sure if I’m missing something obvious or if there’s a trick to it. Thanks!
hey there! I had the same issue when i first tried mailgun. the hostname for MX records should actually be mg.yourdomain.com, not your main domain. so for you, it’d be mg.example.com. give that a shot and see if it verifies. good luck!
As someone who’s dealt with Mailgun setup quite a bit, I can confirm that the hostname for MX records should be a subdomain of your main domain. Specifically, use ‘mg.example.com’ in your case.
Make sure you’ve added two MX records pointing to Mailgun’s servers:
If you’ve set these up correctly and you’re still having issues, it might be a propagation delay. Give it 24-48 hours before contacting Mailgun support. They’re usually quite responsive and can help troubleshoot any lingering problems.
I’ve been using Mailgun for a while now, and I can shed some light on your MX record issue. The hostname for Mailgun MX records should indeed be your domain, but with a specific subdomain prefix. In your case, it should be ‘mg.example.com’.
If you’ve done all this and it’s still not verifying, you might need to wait a bit. DNS changes can take up to 48 hours to propagate fully. If it’s still not working after that, I’d suggest reaching out to Mailgun support directly. They’re usually pretty helpful with these kinds of setup issues.