HestiaCP detect wrong public IP

I have an issue with my new server detecting the wrong IP.
My local IP: 172.16.7.17 points to public IP: 103.16.62.79 and it works fine with installing HestiaCP successfully.

When I check the Hestia panel network it uses 172.16.7.17 → 103.16.62.80 and I edit and change it back to 172.16.7.17 → 103.16.62.79 and it works without any error.

I also use v-list-sys-ips to check IP also correct 172.16.7.17 → 103.16.62.79

The problem when i send email test with Roundcube the sender IP is 103.16.62.80 not 103.16.62.79

Please tell me how to fix this issue!

Hello @makara,

Check what is the ip configured in exim to be the outgoing ip for yourr domain:

cat /etc/exim4/domains/HEREYOURDOMAIN/ip

If the ip file contents the wrong ip, before changing it manually, try to rebuild your mail domai:
v-rebuild-mail-domain USER DOMAIN

and check the ip file again.

Cheers,
sahsanu

2 Likes

Thanks @sahsanu for the quick response.
I have checked /etc/exim4/domains/HEREYOURDOMAIN/ip and exim4 set IP local: 172.16.7.17 correctly.

I try v-rebuild-mail-domain USER DOMAIN too and it still IP local: 172.16.7.17

I try to send mail test again with www.mail-tester.com it still show wrong public IP 103.16.62.80, public IP mail sender should be 103.16.62.79

Is there any way we can custom mail sender IP address?

So you don’t have assigned public ip to your server, only private one and you are using NAT.

What is the output of this command?

curl http://ip.hestiacp.com

But I think it is a routing “problem” not an Hestia issue.

1 Like

Also, show the output of traceroute:

traceroute -n ip.hestiacp.com

Maybe you would need to install it apt install traceroute

Yes I use private IP on my VM and NAT to public IP 172.16.7.17 → 103.16.62.79 website is working fine only issue with webmail

I try this command and it show 103.16.62.80
curl http://ip.hestiacp.com

I also try this command too and it list many IP
traceroute -n ip.hestiacp.com

We are talking about two different things, one thing is input (website) and the other thing is output (sending mails)

So, your default gateway is using 103.16.62.80.

Yeah, I know, if I told you to execute a command is to view the output :stuck_out_tongue:.

Anyway, with traceroute command you would see the routes it is using to reach the website ip.hestiacp.com and you will see what is the gateway it is using. I’ve no idea how you have configured your network and/or router but by default you are using 103.16.62.80 instead of 103.16.62.79.

1 Like

Thanks you so much @sahsanu I think I have configured wrong network. I will check again. :laughing:

1 Like

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