I’ve not tried upgrading my Mythic Beasts VM yet as I’m hoping for more detailed instructions on the upgrade process. Not so keen to move everything over to a new VM, hence hoping the upgrade route will work.
My advice is to wait!
Anyone tested upgrading yet?
I’ve not tried upgrading mine yet. Ken to be able to do so before the current version goes out of support.
Is there a documented upgrade path yet?
I’m also looking for an upgrade path as per previous upgrades. I’m not keen on having to setup a new Mythic Beasts VM and move everything over.
You don’t have to setup a new VM, it is backup everything then remove sympl. Upgrade the OS then re-install sympl. I would prefer to wait until it is documented before I do it as it appears do many others.
As time goes by, I am thinking more about upgrading, but I don’t want to have the same issues you had.
Can you clarify how you did step 2?
Did you “apt remove” all the sympl* packages? Did you “apt purge” them? Or did you you remove them one by one?
I don’t really want to start afresh with the server, because it has other software on it, which will hopefully survive a dist-upgrade
would it make sense to have a soft link so both addresses work for a year or three?
With a bit of help from Claude, I documented my upgrade. All worked but dovecot had problems so was fixed as per below.
# Upgrading a Sympl server from Debian 12 (bookworm) to Debian 13 (trixie)
Nov 3, 2026 · @Phill
## Overview
An in-place dist-upgrade from bookworm to trixie works on a Sympl server, provided you change two things the upgrade won't do for you: the Sympl apt repo line, and the old Dovecot config snippets that block Dovecot 2.4 from starting.
- **Repo move:** Sympl's packages moved from `packages.mythic-beasts.com/mythic/` to `packages.mythic-beasts.com/sympl/`.
- **Dovecot 2.3 → 2.4:** trixie ships Dovecot 2.4, which uses a new config format. Sympl 13 provides a 2.4 config, but the old 2.3 snippet folders are left behind and break the build.
- **Time:** allow about an hour, plus time to test. Mail access (IMAP/POP3) is down from the upgrade until step 3 is done; incoming mail is still accepted by Exim.
Run everything as root. Commands are written as single lines so they paste cleanly into a terminal.
## Before you start
Take a full backup you could restore from, and make sure the server is fully up to date on bookworm.
1. Back up at least `/etc`, `/srv` and your databases:
```
mysqldump --all-databases > /root/all-db.sql
tar czf /root/pre-trixie-etc.tgz /etc
```
Copy these, and `/srv`, off the server.
2. Bring bookworm fully up to date and reboot if a new kernel came in:
```
apt update && apt full-upgrade
```
3. Check nothing is half-installed. This should print nothing (lines starting `rc` are harmless leftovers):
```
dpkg -l | awk 'NR>5 && $1!="ii" && $1!="rc" {print $1, $2}'
```
4. Install `screen` so a dropped SSH connection can't interrupt the upgrade: `apt install screen`
## Step 1: Update the apt sources
Point the Sympl repo at its new `/sympl/` path and switch every source from `bookworm` to `trixie`.
1. Find the file holding the Sympl repo line. Its name varies between installs (for example `sympl_bookworm.list` or `sympl_mythic-beasts.list`):
```
grep -rn packages.mythic-beasts.com /etc/apt/sources.list /etc/apt/sources.list.d/
```
You want the line like `deb http://packages.mythic-beasts.com/mythic/ bookworm main`. A `mythic.list` file using the `mythic` suite, if you have one, doesn't name a Debian release and can be left alone.
2. Edit that file, replacing `FILE` with the path the grep found:
```
sed -i -e 's#packages.mythic-beasts.com/mythic/#packages.mythic-beasts.com/sympl/#' -e 's/bookworm/trixie/g' FILE
```
It should now read `deb http://packages.mythic-beasts.com/sympl/ trixie main`. If the file name contains `bookworm`, you can rename it to `sympl_trixie.list` to avoid confusion later.
3. Update the Debian sources:
```
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
grep -rl bookworm /etc/apt/sources.list.d/
```
Any file the grep lists needs the same change. Check that the security line now reads `trixie-security`.
4. Run `apt update` and check there are no errors, especially on the `packages.mythic-beasts.com/sympl trixie` line. A note like `Ignoring file '_empty' ... no filename extension` is harmless.
5. Confirm the Sympl packages will come from the new repo:
```
apt-cache policy sympl-core
```
The candidate should be listed from `packages.mythic-beasts.com/sympl trixie`.
## Step 2: Run the OS upgrade
Upgrade in two stages inside `screen`, then reboot.
1. Start a screen session: `screen` (if you get disconnected, log back in and run `screen -r`).
2. Do the minimal upgrade first:
```
apt upgrade --without-new-pkgs
```
3. Then the full upgrade:
```
apt full-upgrade
```
When asked about changed config files, choose the **package maintainer's version** for Dovecot and anything Sympl manages. Keep your own version for files you've edited yourself, such as `/etc/ssh/sshd_config`.
4. Reboot: `reboot`
5. Check the new release: `cat /etc/debian_version` should show 13.x.
At this point Dovecot is expected to have failed and `sympl-mail` may show as half-configured. Step 3 fixes both.
## Step 3: Fix Dovecot 2.4
Move the obsolete 2.3 snippet folders out of `/etc/dovecot/sympl.d/`, rebuild the config, and finish the package setup.
**Why it fails.** Sympl doesn't ship `dovecot.conf` directly; it builds it with `make` from the snippets in `/etc/dovecot/sympl.d/`. Sympl 13 ships flat 2.4-format files at the top of that folder (`00-header`, `05-version`, `10-sql` … `99-footer`). The old 2.3 subfolders (`10-main/`, `20-mailboxes/` and so on) are no longer part of the package but apt leaves them in place, so both get built together. The new build fails its check, the old 2.3 `dovecot.conf` stays in place, and Dovecot 2.4 refuses it with `The first setting must be dovecot_config_version`.
1. Confirm the symptoms:
```
systemctl --failed
doveconf -c /etc/dovecot/dovecot.conf.tmp -n 2>&1 | grep -iE 'fatal|error' | head
```
Typically `dovecot.service` is failed and the test build stops on an old setting such as `disable_plaintext_auth: Unknown setting`.
2. List the snippets the package now marks as obsolete:
```
dpkg-query -W -f='${Conffiles}\n' sympl-mail | grep dovecot | grep obsolete
```
These should all be inside the subfolders.
3. Check whether anyone customised them. No output means they're all stock and safe to move:
```
dpkg-query -W -f='${Conffiles}\n' sympl-mail | awk '$3=="obsolete"{print $1" "$2}' | md5sum -c 2>/dev/null | grep -v ': OK$'
```
Any file marked `FAILED` was edited locally. Note what it changed so you can recreate it later, in 2.4 syntax, in `/etc/dovecot/local.conf`.
4. Move the old subfolders out of the build. They go to `/root` so nothing is deleted:
```
mkdir -p /root/dovecot-2.3-snippets
cd /etc/dovecot/sympl.d && mv 10-main 20-mailboxes 30-authentication 40-imap-settings 50-pop3-settings 60-sieve-settings 70-lda-settings 80-dict-settings 90-plugin-settings /root/dovecot-2.3-snippets/
ls /etc/dovecot/sympl.d
```
`ls` should show only flat files, no folders. `10-main/60-sni` goes with them; Sympl now generates `/etc/dovecot/sympl-mail-dovecot-sni.conf` instead.
5. Rebuild and test the config:
```
cd /etc/dovecot && make
doveconf -n > /dev/null && echo CONFIG OK
```
6. Finish the half-configured packages and start Dovecot:
```
dpkg --configure -a
systemctl restart dovecot
systemctl status dovecot --no-pager
```
Don't edit `dovecot.conf` itself; the next `make` overwrites it. Local changes go in `/etc/dovecot/local.conf`.
Other Sympl packages build their configs the same way (Exim uses `/etc/exim4/sympl.d/`). To check for leftovers in all of them at once:
```
for p in $(dpkg -l 'sympl-*' | awk '/^ii/{print $2}'); do dpkg-query -W -f='${Conffiles}\n' $p | grep obsolete; done
```
## Step 4: Check everything works
The upgrade is done when no services have failed, no packages are half-installed, and mail goes both ways.
- [ ] `systemctl --failed` lists nothing
- [ ] `dpkg -l | awk 'NR>5 && $1!="ii" && $1!="rc" {print $1, $2}'` prints nothing
- [ ] `systemctl status dovecot exim4 apache2 --no-pager` shows all three running
- [ ] A website on the server loads
- [ ] A mail client can log in over IMAP
- [ ] A test message to an outside address (e.g. Gmail) arrives, and a reply comes back
- [ ] `exim -bt someone@gmail.com` shows `router = dnslookup` and Google's mail servers
If an outgoing message bounces, check the delivery log for the reason: `grep '\*\*' /var/log/exim4/mainlog | tail`.
## Tidying up afterwards
None of these are needed for the server to work, but they're worth doing within a few weeks.
- **Old Dovecot snippets:** once you're sure nothing is missing, delete `/root/dovecot-2.3-snippets/`.
- **Leftover package configs:** remove config left behind by removed packages, such as old kernels:
```
apt autoremove && apt purge $(dpkg -l | awk '/^rc/{print $2}')
```
- **Sympl auto-updates:** run `apt-cache policy sympl-core` and note the `o=` value for the `sympl trixie` line. `/etc/apt/apt.conf.d/90symplupdater` selects Sympl updates by `o=mythic`; if the new repo reports a different origin, update that file to match, or unattended upgrades will stop installing Sympl updates.
- **Legacy apt key:** if `apt update` warns that a key is in the legacy `trusted.gpg` keyring, move it to its own file, check `apt update` still works, then remove `/etc/apt/trusted.gpg`:
```
apt-key export 2>/dev/null | gpg --dearmor > /etc/apt/trusted.gpg.d/mythic-beasts.gpg
```
In addition, I ran the following to rid me of the roundcube server box.
sed -i "s|^\$config\['imap_host'\] = '';|\$config['imap_host'] = 'localhost:143';|" /etc/roundcube/config.inc.php
grep -n imap_host /etc/roundcube/config.inc.php