OpenSuSe migration

Upgrading from an old version.

Here’s what worked for me. Now I know someone will have a different view and say I should have done this or I could have done that but YMMV.

A wee bit of back ground.

Been using Axigen on OpenSuSe since about 2006. I have carried out hardware upgrades in the past simply by installing, copying the files from the old box and that has worked but really needing to get off version 6 to a modern version has become urgent.

I have a single static IP from my ISP so running my own mail server just seemed the best way in the spam-laden Internet.

Armed with the information about how easy it should be to migrate from old to new, I set up a new host and installed 10.6.12. Once activated with a domain name and a licence key, I had difficulty with the migration using the web interface. It was repeatedly reporting that my login failed and the log showed it could not be found locally.

I dug around and found the method of setting up migration using the CLI and that worked - eventually. So now I have a migration from old to new but ideally, I want a new installation on the old host.

Discovering there is an upgrade from 10.6.12 to 10.6.14, my thoughts were to preserve the old set up and make a new installation of 10.6.14 on the desired machine and simply migrate again. No. Could not get the migration to work there at all.

New idea. On the desired machine, install 10.6.12 and then complete the setup using the WebAdmin interface, domain name, postmaster password etc. Then stop the Axigen server and copy all the files from the earlier ‘new’ server that held the successful migration. So far so good but before restarting the Axigen server, edit the file axigen.cfg and change the instances if the IP address of that earlier ‘new’ server to the address of the machine the files have been copied to. The hostname of the earlier ‘new’ server is in there too so that must also be edited.

Logging in to the WebAdmin interface, I can see the active domain, my account and the postmaster account. Opening the WebMail interface to my account revealed an empty inbox.

So back to the CLI and repair my account. This recovers the mailbox contents and attaches it to a new account. Using the WedAdmin interface, I can rename my old account and then the new account created by the repair process. Logging in again using the WebMail interface shows the mailbox contents.

Can’t speak for anyone else but using Axigen on OpenSuSe, while not officially supported, does work. All the Axigen files are in /var/opt/axigen so the axigen folder can be renamed or deleted as required. The axigen binary is in /etc/init.d/ and while it doesn’t get a services entry, it’s a simple process to start it using a bash script @reboot in the root crontab.

As a side note, the successful migration did not bring across the many aliases I have against my account so they had to be recreated by hand - a proper PITA but unavoidable.