Docs › Proxmox (LXC, no Docker)
Rave on Proxmox VE (LXC, no Docker)
One command on a Proxmox VE 8 or 9 host makes a Debian 13 container with Rave, a Dovecot mail store and Apache Tika for attachment search: the same pieces as the Docker stack, installed from Debian packages and Rave's release tarball, without Docker.
On the Proxmox host, as root (the shell under Datacenter → your node → Shell):
bash -c "$(curl -fsSL https://raw.githubusercontent.com/henrikekblad/rave/main/deploy/lxc/proxmox-rave.sh)"
It asks:
- Default or advanced settings. Default: the next free container ID, host name
rave, 2 cores, 2 GB RAM (3 GB with OCR), 16 GB disk on the first container storage, DHCP onvmbr0. Advanced lets you change each of them, a static address and gateway, a VLAN tag, and a root password. - HTTPS.
proxy(your reverse proxy, e.g. Nginx Proxy Manager, Traefik or Caddy elsewhere, forwards to the container's port 3001),caddy(HTTPS in the container with a Let's Encrypt certificate: the domain's DNS must point at it and ports 80/443 must reach it) ornone(plain http on your LAN, for a test). - The host name people open Rave on (
mail.example.com). - OCR for scanned PDFs and photos, IMAPS for native mail apps, and a first user who becomes an administrator (a random password is printed once).
Then it downloads the Debian 13 template if needed, creates and starts an unprivileged container (with nesting, which systemd needs for the services' sandboxing), and runs the installer in it. A few minutes later it prints the address.
Every question can be answered beforehand in the environment (RAVE_DOMAIN, RAVE_HTTPS,
CTID, RAM_SIZE, NET, ...; the list is at the top of the script), and DRY_RUN=1 shows the
pveam/pct commands without running anything:
DRY_RUN=1 RAVE_DOMAIN=mail.example.com bash proxmox-rave.sh
What is in the container #
| Service | Port | |
|---|---|---|
| Rave | 3001 | The webmail. With caddy, only on localhost behind Caddy on 80/443. |
| Dovecot 2.4 | localhost only (IMAPS 993 if chosen) | The mailboxes, /srv/vmail. |
| Apache Tika | localhost only | Reads PDF and Office attachments (and scans, with OCR) for search. No internet access. |
Settings are in /etc/rave/rave.env. Details, file locations and the sandboxing of the
services: deploy/lxc/README.md.
Resources #
| Default | ||
|---|---|---|
| CPU | 2 cores | Busy while a large mailbox is read for the first time. |
| RAM | 2 GB, 3 GB with OCR | Rave 150–500 MB, Dovecot 50–200 MB, Tika up to 1.5 GB (2.5 GB with OCR). |
| Disk | 16 GB | The mail, plus Rave's cache and search index (about as large again). Grow it with pct resize <id> rootfs +20G. |
Users #
pct exec <id> -- rave-admin adduser anna@example.com # asks for a password
pct exec <id> -- rave-admin admin anna@example.com on # make her an administrator
pct exec <id> -- rave-admin list
The login is the user's e-mail address. Administrators can also add users in the web
(Settings → Administration → Users). All commands: rave-admin help.
Updating #
pct exec <id> -- rave-admin update
It downloads the newest release, checks its SHA-256 checksum, copies Rave's databases, switches
to the new version and starts it, and goes back by itself if the new version does not start.
rave-admin rollback returns to the previous version later. Debian's packages update with
apt update && apt upgrade in the container.
Backups #
- Proxmox backups (
vzdump, Datacenter → Backup) of the container hold everything: mail, users, Rave's data and settings. Snapshot mode works; for a copy where nothing is written meanwhile, use stop mode or stop Rave around it. - Inside the container:
rave-admin backup /pathwrites the mail, the user list, Rave's data and settings as.tar.gzfiles (Rave is stopped while it copies). rave-admin export anna@example.commakes one user's archive.
Keep backups as private as the mail: Rave's data holds the keys that decrypt the users' stored account logins.
Compared with the Docker stack #
- No Office previews: Gotenberg exists only as a Docker image. Point
OFFICE_CONVERTER_URLinrave.envat a Gotenberg running elsewhere if you want them. - A fixed mail layout (
/srv/vmail/<domain>/<user>/Maildir); for mounting an existing Maildir with another layout, use the stack. - Services separated by Unix users and systemd sandboxing instead of containers and an internal network: give Rave a container of its own.
- Users, mail and Rave's data have the same format, so per-user exports move between the two.
Without Proxmox #
install.sh works on any Debian 13 machine or VM:
curl -fsSLO https://raw.githubusercontent.com/henrikekblad/rave/main/deploy/lxc/install.sh
RAVE_DOMAIN=mail.example.com bash install.sh
See deploy/lxc/README.md.
This page is docs/proxmox.md in the Rave repository.