I'm using DNSimple for managing my records, hosting my site at Heroku and I want to use a Linux WHM (cPanel) for managing emails forwarding.
Hosting works, but I'm having a hard time getting emails to work. Here are my (pseudo-)records:
Type Name TTL Points to
---------------------------------------------------------
ALIAS | mydomain.com | 3600 | mydomain.herokuapp.com
CNAME | www.mydomain.com | 3600 | mydomain.herokuapp.com
CNAME | mail.mydomain.com | 600 | <WHM server IP address>
MX | mydomain.com | 600 | <WHM server IP address>
NS | mydomain.com | 3600 | ns1.dnsimple.com
... | ... | ... | ...
NS | mydomain.com | 3600 | ns4.dnsimple.com
There are two more records, SOA and TXT, generated by DNSimple, but I don't think those are relevant. When I add an A-record:
A | mydomain.com | 3600 | WHM server IP address
and change the mail CNAME
and MX
records to mydomain.com
, emails start working, but then the hosting doesn't work anymore.
Is this possible to achieve?