Skip to content

Single server

HTTPS proxy and certificate

Caddy by default, your nginx with certbot, or your own certificate: three free options, a single certificate for web and mail.

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.

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).

Shell
curl -fsSL https://voaaro.com/install.sh | sudo bash -s -- \
  --key … --domain mail.example.com --email admin@example.com --proxy caddy

2. 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):

  1. it writes the site /etc/nginx/sites-available/mail.example.com (or in conf.d) from the provided template: 32 MB for the console, 16 MB for /api/v1/, X-Real-IP and X-Forwarded-Proto, JSON compression;
  2. it runs certbot --nginx -d mail.example.com --redirect;
  3. 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:

Shell
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.pem

It 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 the on_demand_tls block and the https:// site to its deploy/proxy/Caddyfile (see deploy/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 single voaaro-domaines certificate, renewed by certbot, nginx reloaded after each issuance), then install deploy/nginx/voaaro-domaines.conf (port 443) with the card's server_name list. 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.

Esc