Upgrade from 57a to70

Hi there,

no flames please. :slight_smile: I have an old miab installtion on Ubuntu18.x and i want to move to a LTS 24.04. What would be the best way to upgrade?

  • Setup new box with same ip/dns
  • Install miab
  • restore backup

Is that the way to proceed?

Thanks in advance,

Maurice

Yeah, that’s pretty much it. One exception: you’ll need to use Ubuntu 22.04, as 24.04 is not supported.
See Mail-in-a-Box Maintenance Guide (heasing “Upgrading Mail-in-a-Box”) for details. You’ll probaly need to addd a step 4, running the MiaB setup again.

1 Like

Thx for confirmation. OK, 22.04 then. Will try it the next days.

Maurice

Before I forget, you can easily test the migration by spinning up a new VPS, and keeping the old one running. This way you can try it out, see if you encounter issues.

Yes, good idea and worth doing it considering the large version gap … :slight_smile:

Thx, maurice

I literally did the same thing a few weeks ago and didn’t have any major issues. Only had a little hiccup figuring out how to restore from my B2 Backblaze backup but overall it was surprisingly smooth.

And yes, spin up a new machine, set it up fully and then transfer the IP to it. At least that’s what I did and it was super easy (I use Linode).

Good luck!

1 Like

Just finished doing this and it went very smooth.

  • set up new server
  • install MIAB with the same hostname as the old one [or different if you prefer]
  • restore backup [I went with `rsync old:/home/user-data/mail /home/user-data/mail` and all users, mails, settings are identical]

Posting mainly to reassure you it’s not that complicated. :slight_smile:

1 Like

Today I also (finally) upgraded my MiaB 57 installation to 70.

If I knew it would be this easy, I would have done it years ago! I encountered 0 issues.

Thank you Josh and team!

Looking forward to the 24.04 upgrade

Thanks for the positive feedback!

Maybe 26.04, if folks pitch in next year!

3 Likes

Hello all,

I recently upgraded MIAB to the latest. No issues. This leads me to a question though:

Where is the best to hear of upgrades from? I logged into my server (Which I don’t do regularly) and it notified me of an upgrade.

I’ve enabled some notifications on Github but I’m not certain I’ve done it correctly or if it will work. Guess we’ll find out once a new update comes out.

Been using MIAB for a while and it’s amazing. Thanks JoshData!

Thanks,
Dan C

The admin email of your MIAB will send emails related to updates, usage etc.

Github has an Atom feed:
https://github.com/mail-in-a-box/mailinabox/releases.atom

I just had a nasty scare with my ancient and neglected v0.54 - a proper wake up call for me.
Something went wrong and running the sudo mailinabox setup failed (unsurprisingly) at python packages.
I was able to comment out the hide_output pip3 install --upgrade b2sdk boto to get up and running, I’m guessing without backups but I’ll be upgrading to v70 on Saturday.

Really glad to hear the process looks very straight forward. Lessons learned.

Thanks for all your feedback. I did not start the upgrade because of a lack of time but around xmas i will start. I have to check how to transfer the old ip to my new box then (Provider Hetzner) but your experience helps me to be confident.

cheers, Maurice