Dear Stalwart Team,
Hello. Yesterday at dawn, I attempted to switch from Stalwart v1.67 to the v1.01 binary, but none of the emails could be opened. Upon checking the documentation, I realized that additional steps are required for this process.
However, email data is a critical corporate asset for us, and I am quite hesitant to follow the online instructions myself, as I am afraid of making a mistake. I looked for an official migration tool provided by the developers, but it appears that none is currently available.
While browsing through the issues, I noticed that some other users also seem to have experienced issues where entire emails fail to open. Given that we have over 1TB of employee data and databases, backing everything up and attempting this manual process feels extremely risky, and honestly, I am too apprehensive to proceed on my own.
Could you please let me know if there is any possibility that an official migration tool (especially for Windows) might be released by the developers in the future?
Thank you for your time and assistance.
Best regards,
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
An official migration tool already exists. It’s called stalwart-migrate, and it’s documented in the upgrade guide: Overview | Stalwart
I’m assuming “v1.67” means 0.16 (the docs say the source must be 0.16.27) and “v1.01” means 1.0. Please correct me if that’s wrong. A 1.0 server can’t open a 0.16 data store, which is why your mail wouldn’t open. Stalwart 1.0 refuses to start on that store with the error “The data store was created by a Stalwart version prior to 1.0 … and cannot be opened by this version.”
Data safety. The tool copies your data and never modifies the original.
It opens the 0.16 store read-only and writes everything into a new, empty 1.0 store.
Your 0.16 deployment stays intact and can keep running during and after the migration.
A rollback command exists, and verify compares the old and new stores.
If you already switched binaries, the old data should be untouched, because 1.0 refused to open it. Check that before doing anything else.
You still need room for a second copy of the data store. With an external blob store that 1.0 reuses, only the data store is duplicated.
How it runs.
The bulk copy runs while 0.16 keeps serving users. It can be interrupted and resumed, and repeated runs copy only what changed.
You stop 0.16 only for a short final run (run --final), and then start 1.0 on the new store.
The tool keeps IMAP UIDs and account IDs, so clients don’t re-download their mailboxes.
OAuth users have to sign in again, and the full-text search index is rebuilt after startup.
Windows. The docs say the tool runs on a Linux or macOS host that can reach both stores. They don’t mention a Windows version, and I found nothing about whether one is planned. If your server runs on Windows, a human will need to say what the options are. One possibility is running the tool on a Linux host that can reach both stores, but the docs don’t confirm that setup, and it matters for paths. See Paths and file ownership.
Before you start. The source must be on 0.16.27, so upgrade to that first if you aren’t there yet. Then run prepare to review the settings conversion.
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
There is an official tool: stalwart-migrate. It copies your settings and data into a new, empty 1.0 store and opens the old store read-only, so your original data stays intact and your server keeps running while the copy happens. Later runs copy only what changed, and the mail server is down only for the last run. If the trial doesn’t go well, you restart your old version on your old store.
Windows won’t get a native build for now, but the tool works on a Windows machine through its Docker image or the Linux binary in WSL, as described on the installation page.
With over 1TB, disk space is what to plan for first. You need room for a second copy of the data store. If your messages are in an external blob store such as S3, they stay where they are and only the data store is copied.
The version matters too, because the tool only reads Stalwart 0.16.27. There’s no v1.67, so I’m guessing you’re on something like 0.16.7, which means upgrading to 0.16.27 first. For anything older than 0.16, the path is the migration guide with the proxy and Vandelay.
Stalwart 1.0 refuses to open a 0.16 data store, so your attempt shouldn’t have changed your existing data, and the old binary should work on it as before. The quick guide has every step in order.
What does your old binary print for stalwart --version, and which data store do you use (RocksDB, PostgreSQL, something else)?