Self-host Stalwart Mail Server with Levelrail
An all-in-one SMTP, IMAP, JMAP, and WebDAV mail server in a single lightweight container.
- Memory256 MiB
- Archarm64
- Services1
How to self-host Stalwart Mail Server
-
Pull the images
One image is pulled on your server.
Show images
stalwartlabs/stalwart:v0.16.23
-
Create the app
One service starts in a single Compose app, with 2 named volume mounts for your data, on port 8080.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Stalwart Mail Server requirements
- Memory
- About 256 MiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 8080
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- not yet recorded
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
- Host ports. It publishes port 8080 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Stalwart Mail Server. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Stalwart Mail Server docs page.
Deploy Stalwart Mail Server your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Stalwart Mail Server from the CLI
levelrail-cli templates deploy stalwart --name my-stalwart Deploy Stalwart Mail Server with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/stalwart/deploy Stalwart Mail Server configuration
Stalwart Mail Server services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| stalwart | stalwartlabs/stalwart:v0.16.23 | 8080 | stalwart_config -> /opt/stalwart/etcstalwart_data -> /opt/stalwart/data |
Stalwart Mail Server environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 8080
- Volumes
- 2 named mounts: stalwart_config -> /opt/stalwart/etc, stalwart_data -> /opt/stalwart/data
Stalwart Mail Server FAQ
How much memory does Stalwart Mail Server need?
The catalog lists about 256 MiB of memory for Stalwart Mail Server.
Does Stalwart Mail Server run on arm64?
For Stalwart Mail Server, an arm64 image is published; amd64 is image published.
Does Stalwart Mail Server need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Stalwart Mail Server use?
Stalwart Mail Server listens on port 8080 inside the stack.
Where does Stalwart Mail Server keep its data?
In named volumes: stalwart_config mounted at /opt/stalwart/etc and stalwart_data mounted at /opt/stalwart/data.
Can I deploy Stalwart Mail Server on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id stalwart for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image stalwartlabs/stalwart:v0.16.23 is what you deploy there.