Hey guys, I’m having trouble with my Mailgun setup. I’m trying to send emails from a subdomain, but some mail providers are rejecting them. Here’s the deal:
I set up subdomain.domain.tld in Mailgun and did all the DNS stuff they asked, except for the MX record. My domain registrar won’t let me add MX records for subdomains.
The weird thing is, I can send emails to Gmail, Yahoo, and Hotmail just fine. But places like mail.ru and freenet.de are rejecting them. They’re saying stuff like ‘Domain not found’ or ‘Unroutable sender address’.
I think it’s because of the missing MX record for the subdomain. Is there a way to fix this without changing my whole domain setup? Can I make Mailgun use a different bounce address that doesn’t need my MX record?
The issue you’re facing is indeed likely due to the missing MX record for your subdomain. Some email providers are stricter about this requirement than others, which explains the inconsistent delivery results you’re experiencing.
One potential solution is to configure a custom MAIL FROM domain in Mailgun. This allows you to use a different domain (with proper MX records) for the return path, while still sending from your subdomain. Set this to your main domain that has valid MX records.
Additionally, ensure you’ve properly set up SPF and DKIM records for your subdomain. These can sometimes help mitigate delivery issues even without an MX record.
If these steps don’t resolve the problem, you might need to consider using a different subdomain or your main domain for sending emails to ensure consistent delivery across all providers.
hav u tried using a custom MAIL FROM domain? mailgun lets u set that up in ur account settings. it can b different from ur sending domain. maybe try using ur main domain (with mx record) as mail from. that might solve the rejection issue without messin with ur subdomain setup.
I’ve dealt with similar Mailgun issues before. Have you considered using a sending domain instead of a subdomain? It’s generally easier to set up all the required DNS records on a full domain.
If you’re set on using the subdomain, try this workaround: Create a catch-all forwarder on your main domain that redirects any emails sent to *@domain.tld to a specific address. Then, configure Mailgun to use [email protected] as the return path. This way, you’re using a domain with proper MX records for the return path while still sending from your subdomain.
Also, double-check your SPF and DKIM settings. Sometimes tweaking these can improve deliverability even without an MX record. If all else fails, you might need to bite the bullet and switch to a setup that allows for full DNS control.