mail.domain.com with different IP for Cloudflare DNS

triatlas

Member
Jan 27, 2017
21
2
3
Germany
cPanel Access Level
Root Administrator
I use Coudflare for my website and therefore configured the Cloudflare DNS for my domain's mails:

A domain.com xxx.xxx.xxx.xxx
A www.domain.com xxx.xxx.xxx.xxx
A mail xxx.xxx.xxx.xxx
MX domain.com mail.domain.com

...

The IP xxx.xxx.xxx.xxx is the dedicated IP of my cPanel account.
A and MX entries (marked above) are set to no-proxy (gray cloud symbol).

Now cloudflare tells me that A mail entry is unhiding the IP of domain.com so that not all security features can be used.

How can I assign a different IP to mail.domain.com using cPanel?
Do I have to open a separate - mail only - account with mail.domain.com and use that one for my mails with own dedicated IP then?
Or can I just ignore the cloudflare hint about unhiding the IP of the mail domain and live with that fact?

How do you handle this case? Happy to hear you opinion!
 
Last edited:

kodeslogic

Well-Known Member
Apr 26, 2020
293
103
118
IN
cPanel Access Level
Root Administrator
I assume you are using the VPS or Dedicated server and If you have an additional IP address on your server then the workaround to this would be pointing the A record of mail.domain.com to the secondary IP as below:

A mail xxx.xxx.yyy.yyy (xxx.xxx.yyy.yyy is secondary IP address hosted on your server) - set to no-proxy.
 
  • Like
Reactions: cPRex

triatlas

Member
Jan 27, 2017
21
2
3
Germany
cPanel Access Level
Root Administrator
Thanks for your reply! I have a dedicated WHM managed Server with multiple free IPs and the account itself has a dedicated IP.
How does the routing know that the newly assigned other IP is linked to may cpanel account's mail?