Coinciding with the the upgrade to version 0.43 of MIAB and the change to Ubuntu 18.04, I would like to change the primary domain of the server.
At this moment I have the new machine configured with the new domain and working correctly. I’m going to import the backup of the previous server to shut it down, but I need to know, how could I make the users that I have in the old machine can keep their email settings (the domain name), to avoid having to change all one to one.
Is there a solution for the old domain to work transparently even if the new settings are made with the new domain?
Yes. It wasn’t clear if you had wanted to rename all of the old user accounts to the new domain, or not in the OP.
Personally, I would suggest to assign your new MiaB install with the old hostname by running sudo mailinabox again … then restore your files. This will restore everything as normal - THEN rerun sudo mailinabox changing to the new hostname. I suspect that this will go much smoother in the long run. I am not sure that I have helped anyone do this before but just my experience says that this will be the path of least resistance.
Not clear here though … you want the old domains MX record to point to the new domain …will you be using MiaB for DNS for the old domain going forward? You would not point any IP’s. The old users will log in to the new domain to read their mail.
Thank you very much, but I think it is not exactly what I am asking.
My question is, do I have to change the settings in the mail clients (outlook, etc) of my users? Or can I leave the old domain in its configuration and make it point to the new ip of the new server?
Users do not use webmail, they have their accounts set up in their email clients.
Let me ask this … why do you want to change the domain to example2.com from example1.com … why not leave it as is? Maybe there is something that you are not considering and there is a simpler solution … I’ll come back and answer the questions in your last reply shortly.