The system sends this domain’s outgoing mail from a private IP address

BlueSpark

Registered
May 8, 2019
1
0
1
Mexico
cPanel Access Level
Root Administrator
I have a problem with Email Deliverability

I try create a rDNS but the system says:

The system sends this domain’s outgoing mail from a private IP address, “xxx.xx.xx.xxx”. Reverse DNS does not work with private IP addresses because DNS does not store PTR records for them.

The server is on AWS, and when I try to change IP on WHM to my Elastic IP (public IP) in AWS the whole server falls.

I need this to prevent my emails from getting spam

I hope someone can help me to resolve this problem.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @BlueSpark,

Can you confirm if the /var/cpanel/cpnat file exists on this server? You can check by executing the following command while logged in via SSH (Terminal) as root:

Code:
cat /var/cpanel/cpnat
If the file exists and is setup properly, the output of the above command should display the private IP address and public IP address on a single line. If it does not exist, run the following command to automatically populate this file with the correct IP addresses:

Code:
/usr/local/cpanel/scripts/build_cpnat
Thank you.