umauma
April 4, 2025, 6:15am
1
My /etc/mailinabox.conf file has private ipv4 set to shared instance IP address whereas my public ipv4 is set to static ip address.
Upon checking /etc/postfix/main.cf, the ip set here is shared ip address and not the static ip address.
Does it raise alarm? Gmail is rejecting my emails because they are getting shared IPv4 and not the static IPv4.
gezza
April 4, 2025, 9:20am
2
Hi
My /etc/maininabox.conf has both private and public ip set the same as my public ip
My /etc/postfix/main.cf has:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
smtp_bind_address=<your_external_ip>
Hope it helps
1 Like
umauma
April 4, 2025, 9:41am
3
gezza:
Hope it helps
Thanks, I see a lot of old IP addresses when I grep. Is it safe to change them all to new static public IP address manually?
umauma
April 4, 2025, 9:47am
4
I just ran following command and many errors are gone
sed -i 's/OLD.IP.ADDRESS/NEW.IP.ADDRESS/g' /etc/nsd/zones/*
After I also did.
systemctl stop bind9
systemctl stop postfix
systemctl stop nsd
systemctl start nsd
systemctl start postfix
systemctl start bind9
gezza
April 4, 2025, 12:08pm
5
So are you now saying you have/had a DNS error?
Have you modified your DNS settings in any way? Are you running local DNS or other?
umauma
April 4, 2025, 4:07pm
6
Never touched my DNS. I did change IPv4 from temporary allocated IP to permanent static IP and ran the mailinabox command again but it seems like that didn’t change all occurrences.
gezza
April 4, 2025, 5:55pm
7
OK thanks for letting me know. I assume all is working ok now or are you still having issues?
umauma
April 5, 2025, 4:19pm
8
Everything is working fine now!
1 Like