I started getting return emails from Google today when sending to any gmail email. The error from Google said that my PTR record did not match the IP the email was coming from. I do have a block of 5 IP's from my ISP so I did a little digging. Found out that all I needed to do was go into my router and do a little Outbound NAT so the CWP server always used the correct public IP associated with the correct PTR record. My CWP server uses the private IP of 192.168.50.250 so all I had to do was create the NAT rule and everything should work right?...not so much.
I created the NAT rule for 192.168.50.250 and used the command curl ifconfig.me
in CWP to check if it worked and nope. Was still using the wrong public IP. I then used the command ifconfig
to find what IP address CWP was using and sure enough it was using 192.168.50.64
I went back to my NAT rules and created the same rule but used the IP 192.168.50.64 and boom! It started working.
So my question is...how is CWP using both 192.168.50.250 (which is what CWP says is its IP in the GUI and where all port forwarding is routed) and 192.168.50.64 (which is apparently what the CWP mail server is using)?
Is there a way I can delete 192.168.50.64 without breaking something?