MX Record Exposing IP Warning

I’m getting the MX Record Exposes IP warning in the DNS area. How should that be fixed?

Greetings,

Thank you for asking.

From the topic title, a good article about This record exposed the IP behind can be read from below link.

Usually, no need to worry too much. When using an e-mail service, the A mail record needs to be :grey: cloud to make it work propperly as Cloudflare does not proxy traffic for e-mail. It is well described on the below articles.

Kindly, consider reading the second article from belove under the section “Best practices for MX records on Cloudflare → Follow these guidelines to ensure successful delivery of your mail traffic:”.

Therefrom:

Cloudflare’s default configuration only allows proxying of HTTP traffic and will break mail traffic.

Usually, the MX record should point to a hostname such as mail , and the A (or CNAME ) type record for that hostname should be set to :grey: (DNS Only).

May I suggest checking below article if your e-mail records (usually the A mail and the MX record) are configured properly while you are using Cloudflare for your domain name:

However, you could use some relay server to “hide” your real IP, but I doubt as it would end up in some of the e-mail headers (if not being removed) - which could cause possible issues to your e-mail not being delivered or marked as a junk one.

Or some solution as a proxy/relay server of JavaPipe infront of your origin (for specific/needed ports) for example:

Otherwise, I would suggest using Cloudflare Business or even Enterprise plan for SMTP including the Cloudflare Spectrum service:

Is your e-mail being hosted on the same origin host / server as your Website?

Best practices for MX records on Cloudflare:

  • Use separate IP addresses for mail traffic and HTTP/HTTPS traffic. Cloudflare recommends using non-contiguous IPs from different IP ranges.
1 Like

Thanks everyone. This is more than enough information.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.