hubkei
June 26, 2017, 6:52pm
1
Hello,
I am trying to setup our email on an external server separate from where my domain is hosted.
We updated our route53 DNS records.
A record for mydomain.com is 45.xx.xxx.xxx
A record for mail.mydomain.com is 72.xx.xxx.xxx
Is there any way for Cloudflare to pull them automatically?
or when I did setup the MX record manually in Cloudflare,
MX entry is: MX @ mail handled by mail.mydomain.com
I am getting the " Your MX record exposes your origin IP " error.
I looked at this FAQ page: which link i can not post because i have no permission. but it did not help me unfortunatly.
However, I dont know how to fix the MX record entry in Cloudflare. What is the correct syntax to fix it?
Would be great if anybody could help.
Thanks in advance.
I have a similar setup with web and mail on different IPs. Here’s what my setup looks like – sorry for the poor photoshop job
I think you may need to change that to just ‘mail’ and not ‘mail.mydomain.com ’
Hope this helps!
simon
June 27, 2017, 7:48am
3
Your set up sounds simple and pretty common. If your MX record is pointing to a hostname like mail.example.com
then to update which server will receive mail you then need to update the DNS record for mail.example.com
itself which in this case is an A record . Here’s a couple of related articles:
How do I add A records?
How do I add or edit mail or MX records?
Once you’ve updated the mail.example.com
record you can test which IP is returned publicly by resolving it using a command line tool like dig:
dig MX example.com
dig mail.example.com
You should then see the details of your new server there.
2 Likes