# Trying to migrate from a box running Ubuntu 18.04 to one running 22.04

**URL:** <https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721>\
**Category:** Maintenance\
**Created:** [March 30, 2024, 1:05am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721 "2024-03-30T01:05:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaobo](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/gaobo/32/1031_2.png) [@gaobo](https://discourse.mailinabox.email/u/gaobo)\
**Post date:** [March 30, 2024, 1:05am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/1 "2024-03-30T01:05:40Z")

</div>

I host a bunch of domains on the old box and also tons of emails. The box is hosted on Oracle Cloud free tier which has a proven record of stability and performance yet it still does getting down or unresponsive once in a blue moon.

The old box has been running for over 5 years. And I decide not to wait until Ubuntu 26.04 LTS releases, or I should think twice? 🤣

Wish myself a good luck! 🥲

---

<div class="post-metadata">

**Author:** ![dms](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/dms/32/2518_2.png) [@dms](https://discourse.mailinabox.email/u/dms)\
**Post date:** [March 30, 2024, 6:35am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/2 "2024-03-30T06:35:01Z")

</div>

Ubuntu 18.04 was EOL last year, so you should absolutely upgrade and not wait another 2 years. My professional experience I was always been that keeping up with small steps is less work and less risk than catching up in big steps.

---

<div class="post-metadata">

**Author:** ![vele](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/v/e5b9ba/32.png) [@vele](https://discourse.mailinabox.email/u/vele)\
**Post date:** [March 30, 2024, 8:03am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/3 "2024-03-30T08:03:38Z")

</div>

Go with Ubuntu 22.04.4 LTS, choose the always free ARM 4 core 24 gb ram. it runs like charm. The only thing that is not updating on arm is the Duplicity backup but read this thread how to snap install duplicity --classic --edge which is the latest version. [Using MIAB On ARM - #2 by vele](https://discourse.mailinabox.email/t/using-miab-on-arm/11229/2) Oracle Cloud AS seem to have been listed on UCEPROTECT level 3 which might produce some deliverability problems.

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 30, 2024, 1:20pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/4 "2024-03-30T13:20:04Z")

</div>

You should definitely upgrade, but it will not be easy if you did not keep up with the Ubuntu updates, or ever upgrade MiaB from when you first installed it.

What version of MiaB are you running currently?

---

<div class="post-metadata">

**Author:** ![gaobo](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/gaobo/32/1031_2.png) [@gaobo](https://discourse.mailinabox.email/u/gaobo)\
**Post date:** [March 30, 2024, 10:13pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/5 "2024-03-30T22:13:30Z")

</div>

Oracle Cloud ARM instances should work fine providing that they open their 25 port, yet they don’t. 😓 See also: [Outbound Internet E-mail(port 25) from OCI tenancies are blocked by default](https://support.oracle.com/knowledge/Oracle%20Cloud/2787393_1.html#aref_section32)

---

<div class="post-metadata">

**Author:** ![gaobo](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/gaobo/32/1031_2.png) [@gaobo](https://discourse.mailinabox.email/u/gaobo)\
**Post date:** [March 30, 2024, 10:14pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/6 "2024-03-30T22:14:22Z")

</div>

Thanks for your suggestion! The version I am running is the latest one of 18.04 instances: v57.

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 30, 2024, 10:27pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/7 "2024-03-30T22:27:00Z")

</div>

> [@gaobo](#):
>
> The version I am running is the latest one of 18.04 instances: v57.

Then you really shouldn’t experience too much difficulty.

---

<div class="post-metadata">

**Author:** ![gaobo](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/gaobo/32/1031_2.png) [@gaobo](https://discourse.mailinabox.email/u/gaobo)\
**Post date:** [March 30, 2024, 10:37pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/8 "2024-03-30T22:37:16Z")

</div>

Thanks for the encouragement! What I fear is the domain resolution entries which count around 1000. I notice that I can download the zone files but not so confident for where to import them. Researching on that.

---

<div class="post-metadata">

**Author:** ![vele](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/v/e5b9ba/32.png) [@vele](https://discourse.mailinabox.email/u/vele)\
**Post date:** [March 31, 2024, 1:34pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/9 "2024-03-31T13:34:39Z")

</div>

I thought you are already running an Ubuntu 18.04 on OCI? Please clarify what are “domain resolution entries which count around 1000” 1000 domains? You have 1000 custom entries? What type of service are you running? Mail in a box is for personal use and direct mail. I doubt it will serve your purpose.

---

<div class="post-metadata">

**Author:** ![gaobo](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/gaobo/32/1031_2.png) [@gaobo](https://discourse.mailinabox.email/u/gaobo)\
**Post date:** [March 31, 2024, 3:41pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/10 "2024-03-31T15:41:59Z")

</div>

Yes I am running an Ubuntu 18.04 on OCI. Yes I am having 1000 custom entries on less than 10 domains. And yes, MIAB serves my purposes (direct mail, domain resolution, etc.) like a charm. OCI is stable enough for daily use yet its lack of rDNS functionality is a small headache.

---

<div class="post-metadata">

**Author:** ![kimusan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kimusan/32/423_2.png) [@kimusan](https://discourse.mailinabox.email/u/kimusan)\
**Post date:** [April 2, 2024, 7:05am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/11 "2024-04-02T07:05:42Z")

</div>

I just did a similar upgrade last night from 18.04 to 22.04 LTS. No real problems.

First make sure all 18.04 packages are fully updated and that you have the latest MIAB version for 18.04 (I believe it was 0.57b)

Then follow these steps from @mouse 🙂

> [@Version 60 for Ubuntu 22.04 is released](https://discourse.mailinabox.email/t/version-60-for-ubuntu-22-04-is-released/9558/46):
>
> Just wanted to add another confirmation, in place upgrade worked, had to run LTS upgrade twice to get to 22.04 and the above operation mentioned by Wherewolf before running setup script and it all went smoothly. Didn’t have to restore backup with duplicity or anything. Full operation I performed # backed up as mentioned in box migration instructions just incase curl -s https://mailinabox.email/setup.sh | sudo bash sudo apt update sudo apt upgrade reboot sudo nano /etc/update-manager/release…

If you, during the final update of MIAB, hits an error about some python “blinker”, the do the following:

```auto
apt remove python3-blinker
sudo /usr/local/lib/mailinabox/env/bin/pip install --upgrade rtyaml "email_validator>=1.0.0" "exclusiveprocess" flask dnspython python-dateutil expiringdict gunicorn qrcode[pil] pyotp "idna>=2.0.0" "cryptography==37.0.2" psutil postfix-mta-sts-resolver b2sdk boto3

```

Then run the mailinabox installation again and it should all go smoothly

---

<div class="post-metadata">

**Author:** ![aroundmyroom](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@aroundmyroom](https://discourse.mailinabox.email/u/aroundmyroom)\
**Post date:** [April 2, 2024, 1:43pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/12 "2024-04-02T13:43:57Z")

</div>

I was waiting for the .68 update … my 5 year old machine with the old ubuntu was too old and my machine could not update the postfix solution. Also I saw issues when trying to upgrade to a new release … so a new machine it was…

Last week I tried to setup a new machine at Digital Ocean but the installation was a pain in the \*ass … dunno why but probably to forgetting to update the 22.04 before installing MIB.

Today I saw the new release …

I made a new droplet with ubuntu 22.04  
updated it  
than installed MIAB with same info as old box

Wow … working instantly …

Than with winscp I uploaded my backup from today  
and used the migration information to restore data …

After some minutes my backup was restored…

changed my DNS and all was working… Only hassle was to get the backups working again towards my NAS. but after updating the SSH key and some magic in my router … that was working as well …

The only thing I had to reconfigure was that I do not like greylisting …  
so that one I turned off… in main.cf …

.68 seems to work flawlessly (from a new installation and restore backup point of view)

Oh and my new IP seems to work without being classed as a SPAM box 😉

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [May 12, 2024, 1:44pm UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/13 "2024-05-12T13:44:37Z")

</div>

This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.
