Installation
Vandelay is a single binary, vandelay, that contains the migration commands, the terminal interface and the web interface. It runs on whichever host the administrator chooses: the source server, the new Stalwart server or a separate administrative machine. Every release is built for Linux (x86_64, AArch64 and 32-bit ARM, with glibc or musl), macOS (Apple silicon and Intel) and Windows (x86_64). The web interface is not included in the Windows build; on Windows, migrations are run from the terminal interface or the command line.
Host requirements
Section titled “Host requirements”The host carries the whole copy, so its placement decides how fast the migration runs and what it can reach. It needs:
- Network access to the source. Vandelay reads the source over its own protocols and APIs (IMAP, ManageSieve, CalDAV, CardDAV, WebDAV, HTTP admin APIs, Microsoft Graph, Google APIs or Exchange Web Services, depending on the system), always directly and never through the Stalwart proxy.
- Network access to Stalwart. Vandelay writes over JMAP with an administrator account. The target must run Stalwart 1.2 or later; an older target is refused at pre-flight with
Stalwart is older than 1.2: upgrade Stalwart, or migrate account by account with vandelay import and vandelay export, which work with any JMAP server. - Access to the proxy’s management API, for a zero-downtime migration. The API is usually bound to the proxy host’s loopback address, so a Vandelay host elsewhere reaches it through an SSH tunnel.
- Access to the source’s files, for the systems that read configuration, password hashes or DKIM keys from disk. Vandelay reads them either locally, when it runs on the source, or over SSH. Each source page says which files and which user.
- Disk space for the archives. Every account is copied into an archive in the project directory before it is written to Stalwart, and the archives stay there until Finish deletes those of completed accounts, so the volume needs room for every account still in the project, plus some overhead. Pre-flight estimates the size from the source’s inventory and refuses to start when it exceeds the free space, with
free space or move the project before archiving.
Running Vandelay on the Stalwart host keeps the write path local, which suits large mailboxes. Running it on the source keeps the read path local and gives direct access to the source’s files without SSH.
Installers
Section titled “Installers”The release installers download the binary for the current platform from the releases page and place it in Cargo’s binary directory, ~/.cargo/bin, which the installer adds to the PATH. On Linux and macOS:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/stalwartlabs/vandelay/releases/latest/download/vandelay-installer.sh | shOn Windows, from PowerShell:
powershell -ExecutionPolicy Bypass -c "irm https://github.com/stalwartlabs/vandelay/releases/latest/download/vandelay-installer.ps1 | iex"Each release also offers a Windows .msi package and plain .tar.gz archives on the releases page. Package managers install the same binary:
brew install stalwartlabs/tap/vandelaynpm install -g @stalwartlabs/vandelayvandelay --version prints the installed version.
For each release, the releases page also publishes a SHA-256 checksum file for each archive (<archive>.sha256) and a combined sha256.sum, and the builds carry GitHub build provenance attestations, which gh attestation verify <file> --repo stalwartlabs/vandelay checks. A manually downloaded archive is verified against its checksum file with:
sha256sum -c vandelay-x86_64-unknown-linux-gnu.tar.gz.sha256Vandelay can also be built from a checkout of its repository with a recent Rust toolchain, for example to run an unreleased revision. The repository is a Cargo workspace, and the binary is the vandelay crate:
cargo install --path crates/vandelayContainer image
Section titled “Container image”The image ghcr.io/stalwartlabs/vandelay is built for linux/amd64 and linux/arm64. It holds only the binary and the CA certificates, runs as the unprivileged user nobody and starts in /data, so the project directory is mounted there. Running it with the host user’s identity keeps the project’s files owned by that user:
docker run --rm -it --user "$(id -u):$(id -g)" -v "$PWD:/data" \ ghcr.io/stalwartlabs/vandelay migrate status --project acmeThe image contains no shell and no ssh client. Vandelay reads the files of a source over SSH by running the system’s ssh command, so a project whose source needs file access over SSH runs from an installed binary rather than from the image.
Front ends
Section titled “Front ends”Every migration can be run from three front ends, which drive the same projects and show the same steps. A project started in one can be continued in another.
Web interface
Section titled “Web interface”vandelay serve serves the web interface for every project under a directory, or for one project:
vandelay serve --root /srv/migrationsIt listens on 127.0.0.1:8090 and prints a one-time sign-in link to standard error:
vandelay web UI listening on 127.0.0.1:8090sign in: http://127.0.0.1:8090/login#token=<token>one-time token: <token>Opening the link signs the browser in; the token is retired at the first successful sign-in. Plain HTTP is served only on a loopback address, so a web interface on a routable address needs --tls, which generates a self-signed certificate and prints its SHA-256 fingerprint, or --tls-cert and --tls-key for a certificate of its own. Binding the unspecified address (0.0.0.0) also needs --public-url with the name browsers use. --password-file adds a reusable password for later sign-ins. Web UI and TUI describes the options and sessions in full.
When Vandelay runs on a remote server, an SSH tunnel to the loopback address keeps the interface off the network:
Terminal interface
Section titled “Terminal interface”vandelay tui opens the terminal interface on the projects in the current directory, or under --root:
vandelay tui --root /srv/migrationsIt lists the projects, creates a new one with n, and walks through the same steps as the web interface. It needs a terminal on standard input and output, and offers dark, light, 16-colour and monochrome themes.
Command line
Section titled “Command line”Each step of a migration is also a vandelay migrate command, which suits scripts and unattended runs. A project is created with its scope, then configured step by step:
vandelay migrate init --project acme --scope servercd acmevandelay migrate target --url=https://mail.example.org --user=admin --password=askvandelay migrate --help lists the commands, and migrate commands describes them. The web and terminal interfaces show the equivalent command for each form step, so a project set up interactively can be reproduced on the command line.
Next steps
Section titled “Next steps”Concepts introduces projects, plans and the runner. Planning lists the decisions to make before the first project is created, and Server migration walks through a migration step by step.