mx shows ip
hi there ,
i've put my domain - server behind cloudflare .
the server has an MX - mail service aswell .
i created a mail subdomain pointing to my server ip.
and created an mx pointing to mail.dom...
however when checking my mx to see if its protected , all services like https://dnschecker.org/mx-lookup.php?query=
will show my server ip .
what can i do to fix that , thank you
DNS Checker
MX Lookup - Check MX Records of Domain
MX Lookup Tool checks the MX records of a given domain name and verifies if an email server is responding correctly or not. Check MX Records of any domain with this excellent tool.
2 Replies
Support AI
According to the Cloudflare documentation, this issue is related to the
dc-#####
subdomain that Cloudflare creates to overcome conflicts with MX
or SRV
records.
As stated in the documentation (https://developers.cloudflare.com/dns/troubleshooting/email-issues/), "The dc-#####
record ensures that traffic for your MX
or SRV
record is not proxied (it directly resolves to your origin IP) while the Cloudflare proxy works for all other traffic."
To fix this issue, you can update your MX
record to resolve to a separate A
record for a mail subdomain that is not proxied by Cloudflare.
Here's an example from the documentation:
example.com MX mail.example.com
mail.example.com A 192.0.2.1
example.com A 203.0.113.1
By doing this, you will be able to keep your mail service protected behind Cloudflare while still allowing mail traffic to reach your server.
Please note that if your mail server resides on the same IP as your web server, your MX
record will expose your origin IP address. It's recommended to use non-contiguous IPs from different IP ranges for your mail and web services.Sources
Feedback
Feedback has been submitted! Thank you :)
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
well sh**, so i cant do nothing ?
i cant own my mx server without disclosing my server ip ?
gotcha , thank you !
😦