The same certificate is used by the console (HTTPS) and the mail engine (SMTP and IMAP with TLS). All three options are free; choose one with --proxy at installation.
1. Caddy (default, recommended)
If ports 80 and 443 are free, the installer starts Caddy in a separate Compose project (voaaro-proxy, host network). Caddy obtains and renews on its own the Let's Encrypt certificate; the maintenance agent copies each new certificate to the mail engine and restarts it.
Settings applied: request body of 32 MB at most, HSTS, compression, real client address forwarded (X-Real-IP).
curl -fsSL https://voaaro.com/install.sh | sudo bash -s -- \
--key … --domain mail.example.com --email admin@example.com --proxy caddy2. nginx already installed, with certbot
If nginx is already running on the server and uses 80/443, the installer picks it automatically (or --proxy nginx):
- it writes the site
/etc/nginx/sites-available/mail.example.com(or inconf.d) from the provided template: 32 MB for the console, 16 MB for/api/v1/,X-Real-IPandX-Forwarded-Proto, JSON compression; - it runs
certbot --nginx -d mail.example.com --redirect; - it installs the renewal hook
/etc/letsencrypt/renewal-hooks/deploy/voaaro.sh, which copies the renewed certificate to the mail engine and restarts it.
The template optionally includes brotli compression and a static file cache.
3. Your own certificate
Corporate certificate, wildcard certificate (*.example.com) or another authority:
curl -fsSL https://voaaro.com/install.sh | sudo bash -s -- \
--key … --domain mail.example.com \
--tls-cert /etc/ssl/example/fullchain.pem --tls-key /etc/ssl/example/privkey.pemIt works with Caddy, nginx or --proxy none (no proxy set up: it is up to you to serve https://mail.example.com to 127.0.0.1:18190). The certificate must cover the hostname.
Per-domain names (MTA-STS, autoconfiguration, sign-in page)
Each mail domain can have mta-sts., autoconfig., autodiscover. and mail. pointing to the server. These names are served over HTTPS: the proxy needs a certificate for each. The Certificate for per-domain names card (Administration › Domains and DNS) lists them with their DNS and HTTPS status.
- Caddy: automatic. Caddy requests the certificate on the first connection under that name, after asking the service whether the name belongs to a domain of the instance (
/api/tls/ask): an unknown name gets nothing. An older Caddy install adds theon_demand_tlsblock and thehttps://site to itsdeploy/proxy/Caddyfile(seedeploy/README.md), then restarts Caddy. - nginx: once, install
deploy/nginx/voaaro-domaines-http.conf(port 80, Let's Encrypt validation). Then run the certbot command given by the card (a singlevoaaro-domainescertificate, renewed by certbot, nginx reloaded after each issuance), then installdeploy/nginx/voaaro-domaines.conf(port 443) with the card'sserver_namelist. For each new name: the updated command and list,nginx -t, reload. - Provided certificate: it must cover these names (a wildcard certificate per domain, for example).
Only names whose CNAME is published go into the command: a name that does not point to the server would make Let's Encrypt fail.
Behind another proxy or a CDN
The service reads the client address from X-Real-IP: your proxy must set it (per-IP attempt limits depend on it). Mail (25, 465, 587, 993) never goes through an HTTP proxy or a CDN.