Voaaro can run on several servers of your own, still with Docker Compose: a primary (the single-server installation you already have) and nodes that join it with one command. Everything stays self-hosted and free: the PostgreSQL database, the Valkey caches and the S3 storage (Garage) run on your servers.
What you gain
- Scale: every node receives and sends mail, serves IMAP and runs a copy of the service; your HTTP load balancer spreads the console and the API over the copies.
- Spread sending: every server brings its outbound IPs; one message type (people, API, campaigns) can leave from the IPs of several servers (multiple IPs).
- Fewer outages: a stopped node (update, failure) loses nothing; queued mail leaves from another node, and background jobs (campaigns, automations, reminders, monitoring) resume elsewhere, exactly once.
How it is built
| On the primary | On every node |
|---|---|
| PostgreSQL (all data) | mail engine (SMTP, IMAP, sending) |
| service Valkey (cache, shared rate limits) | a copy of the service (console, API, webmail) |
| engine Valkey (queues and coordination between nodes) | antivirus |
| Garage, S3 storage for mail | |
| engine, service, antivirus, HTTP load balancer |
Servers talk over a private network: the database and caches are never on the Internet.
Step by step
1. Rent the second server
From the same provider as the primary, in the same data centre (low latency to the database): 2 vCPU and 4 GB of memory are enough to start. Pick a provider that allows outbound port 25 and reverse DNS, as for the first one.
2. Connect the servers through a private network
Easiest: your provider's private network (vSwitch, VPC, private network), free with most providers. Note each server's private IP, for example 10.0.0.1 (primary) and 10.0.0.2 (node). Otherwise a WireGuard tunnel between the two servers does the same.
Check from the node: ping 10.0.0.1.
3. Switch the primary to several-servers mode
On the primary, once, from the installation folder (cd /srv/voaaro):
sudo scripts/cluster.sh enable --private-ip 10.0.0.1 --node-name mx1This publishes the database and caches on the private IP only, adds the Garage S3 storage and restarts the services (one to two minutes of downtime).
Then move mail to the shared storage: Administration › Storage › S3 compatible, with the values printed by the command (address http://garage.voaaro:3900, region garage, bucket voaaro, path style), then "Test", "Copy mail" and "Switch". See Storage.
4. Invite the new server
On the primary:
sudo scripts/cluster.sh inviteThe command prints a single-use token (valid for 30 minutes) and the line to run on the new server.
5. Join from the new server
Install Docker and the same Voaaro version as the primary, get a certificate for the node name (for example mx2.example.com), then:
sudo scripts/install.sh --join 10.0.0.1 --token <token> \
--hostname mx2.example.com --tls-cert fullchain.pem --tls-key privkey.pemThe node fetches its secrets over the private network (encrypted with the token), starts its engine and its copy of the service, and joins the others. Check on the primary:
sudo scripts/cluster.sh statusBoth engine nodes and both service copies are listed; Administration › Health shows "2 service replicas running".
6. Load-balance the console and the API
On the primary, replace your nginx proxy target with a two-server upstream (deploy/nginx/voaaro-cluster.conf):
upstream voaaro {
server 127.0.0.1:18190 max_fails=2 fail_timeout=10s;
server 10.0.0.2:18190 max_fails=2 fail_timeout=10s;
keepalive 32;
}then proxy_pass http://voaaro;, nginx -t and systemctl reload nginx. With Caddy, the proxy the installer sets up by default, the reverse_proxy line of /srv/voaaro/deploy/proxy/Caddyfile becomes reverse_proxy 127.0.0.1:18190 10.0.0.2:18190 { lb_policy round_robin } (keeping header_up X-Real-IP {remote_host}), then restart Caddy. No session affinity is needed: any copy answers, passkeys included.
7. DNS
For each node:
mx2.example.com A <node public IP>and the reverse DNS of that IP set tomx2.example.com(at your provider);- a second MX with the same priority for each domain:
example.com MX 10 mx2.example.com, next to the first one; inbound mail is spread over the nodes and goes to the other one if a node is down; - SPF: add the node IP (
ip4:…), as Domains and DNS shows once the IP is declared; - if you publish MTA-STS, add
mx: mx2.example.comto the policy.
8. The new server's IPs for sending
In Administration › IP and reputation, add the node's public IP with the server mx2 and the types it serves. It goes through the same warm-up and the same blocklist monitoring as the others. Each node only sends from its own IPs.
A node's IP can also be dedicated to an organization (organization page, "Dedicated IPs and relay"): only that node uses it for the organization's mail. For the nodes that do not have one, choose "Cluster nodes without a dedicated IP": they send through the instance's IPs (default), or they leave the message to the nodes that have the IP (sending is postponed by one minute on the others, not counted as a failure). If no dedicated IP is in service any more (node stopped, agent silent for 15 minutes), the instance takes over sending.
Updating
Update the primary first (voaaro update), then each node. Service copies of different versions coexist during the update.
Paid fallbacks
A managed PostgreSQL database or a provider's S3 storage (Scaleway, OVHcloud, Backblaze…) can replace the primary's; it is not needed to start. Paid sending relays remain a fallback (relays).