Skip to content

Deliverability and scaling

Kubernetes (Helm chart)

Deploy Voaaro on a Kubernetes cluster with its Helm chart, on a managed database, caches and S3 storage.

Beyond a few servers, or if your team already runs Kubernetes, Voaaro deploys with its Helm chart (deploy/helm/voaaro in every release bundle). It works like several servers: several mail engine nodes, several copies of the service, one shared database and shared caches.

What the chart installs

ComponentRole
Mail engine nodes (StatefulSet, 2 by default)inbound and outbound SMTP, IMAP; each has a stable name (…-engine-0, …-engine-1)
Service copies (2 by default)console, webmail, API
Antivirusinbound mail filter and scanning of files sent by link
Configuration Jobapplies the engine configuration at every install and upgrade
Mail Service (LoadBalancer or NodePort) and Ingressports 25, 465, 587 (STARTTLS), 993; HTTPS for the console

You provide PostgreSQL (two databases), two Valkey instances (service cache, and engine queue and coordination) and an S3 bucket for mail: your own servers (PostgreSQL, Valkey and a self-hosted S3 such as MinIO or Garage, with their own redundancy) or, failing that, your provider's managed services. For a trial, the chart can embed them (trial.*), without backups: never in production.

Before installing

  1. Images: load your release's images (provided with your license) into your private registry, then set images.registry and imagePullSecrets. Do not publish them on a public registry.
  2. Database: create the two roles and two databases (the service's, voaaro, and the engine's), with the commands given in deploy/helm/voaaro/values.yaml.
  3. Valkey: the engine's instance must use the volatile-lru eviction policy.
  4. Secrets: a single Kubernetes Secret that you create (no password in the chart values). Keep the secret-key value outside the cluster: without it, two-factor authentication and stored secrets cannot be read.
  5. Certificates: a TLS Secret for the mail services (cert-manager works) and one for the Ingress. A renewed certificate is reloaded by the engine every six hours, without a restart.
  6. Required values: hostname, secrets.existingSecret, engine.podNetworks (pod address ranges, which the engine must never ban), engine.tlsSecret, postgres.host, valkey.* and blobStore.s3.*. publicIp (the mail Service address) can be filled in later; a complete example is in deploy/helm/voaaro/ci/external-values.yaml.

Install

Shell
helm upgrade --install voaaro deploy/helm/voaaro -n voaaro -f my-values.yaml --wait --wait-for-jobs --timeout 20m

Then open the first-run wizard (https://<your name>/#code=<setup-token>), activate your license in Administration › License, and publish DNS: MX and A to the mail Service address, reverse DNS at your provider (DNS).

Client IP addresses

The engine needs the sender's real address (anti-spam, SPF, abuse blocking). The mail Service uses externalTrafficPolicy: Local by default. If your provider's load balancer sends the PROXY protocol, list its addresses in engine.proxyTrustedNetworks.

Backups

With backup.enabled, the chart adds the backup agent: it follows the schedule and the button in Administration › Health › Backups, encrypts both databases with your backup key (the same as for a single-server installation, kept in a Secret and outside the cluster) and stores them in a backup bucket separate from the mail bucket, with the rotation you choose (backup.keep, by default 7 daily, 4 weekly, 6 monthly). The weekly restore test restores the latest backup alongside and checks it. To restore: scripts/helm-restore.sh <namespace> <release> [<backup name>] --yes (the latest one without a name; service and engine stopped while the databases are replaced).

Upgrading

Load the new release's images into your registry, change images.*.tag and run the same helm upgrade command. Each revision's Job applies the engine configuration again and restarts the engine nodes (one at a time) only if it changed. voaaro update and the console's Update button do not apply to Kubernetes.

Limits

  • Sending IPs are those of your Kubernetes nodes or their egress gateway: for several IPs per message type, prefer several servers or relays.
  • Mail is not copied by the backups: turn on versioning for the mail bucket at your provider.
Esc