I have added a secondary IP for the VPS that’s running mailinabox, and the NS and A records do point to that new IP but the box is still using the old IP.
This currently the IP settings:
eth0 Old IP
eth1 NEW IP
How can I make the MIAB Setup change from using the Old IP in eth0 to the new eth1 NEW IP? Can this be achieved? Or I should stay with the Old IP. Thanks for your guidance and help.
Reverse DNS box.mydomain.com should resolve to your IP also.
it should not have problem working automatically.
the set up will create the config file at /etc/mailinabox.conf which you can see the IP address the box is using. Im not sure whether overwriting this is a good move because not sure whether this file gets overwritten when you update
Thank for the heads up, but editing the mailinabox.conf file and running the setup again ends with the following message:
'seradd: invalid user name 'user-data
And I can’t go any further.
Does the normal setup (i.e. without any changes to the config file) run without any errors on the server?
Did you only change the IP in mailinabox.conf? Did you make any other changes, i.e. changed line breaks etc.? You should only change the IP, nothing else and you should do it (if possible) on the server itself (e.g. with nano/vi/…)
Your error most likely results from the fact that the mailinabox.conf file got broken. However, we are also trying something unsupported here, so again: keep backups from the running system