Self-hosting
Install once, on a box you own. Operable by one person.
AshuMail is designed so a single owner-operator can install, upgrade, back up and monitor it. The reference stack is Podman Compose: the app, its own Rust mail engine, Postgres, object storage, and a TLS edge — around €10–20 a month plus your domains.
What you need
A mail-capable host is the one non-negotiable.
Everything else the stack brings itself. Mail servers are judged on three things residential connections rarely offer — check these before you start.
Open outbound & inbound port 25
Rules out AWS, GCP, Azure and most consumer ISPs. Good options: Hetzner (on request), OVH, Netcup.
Dedicated IPv4 with PTR/rDNS control
A static IP whose reverse DNS you can set to your mail host — and that isn't already on a blocklist. Check it against Spamhaus before you pay.
NVMe storage, snapshot-capable
250 GB or more, with a provider whose terms of service permit running a mail server.
Rootless Podman + Compose & a domain you control
The stack is container-native. Bring a domain whose DNS you can edit (auto-config supports a provider API token, or paste records manually).
The install
Fresh host to first delivered email.
Bring up the stack
Clone the repo, materialize your secrets (a SOPS + age vault is the root of trust), and start the compose stack. The app, the Rust mail engine, Postgres and object storage come up together; database migrations run themselves.
Seed the first super-admin
A one-time break-glass bootstrap creates your tenant, its domain, your super-admin user with an Argon2id password, and provisions your mailbox — so webmail has folders and can send and receive immediately. Then you unset the bootstrap variables.
Add a domain & go live
Point your hostnames at the box, issue Let's Encrypt certs at the TLS edge, and run the onboarding wizard: live DNS checks, a minted DKIM key, generated SPF/DMARC, verify, create mailboxes. Mail flows.
# 1 — clone and load secrets (SOPS + age) git clone <your-fork> ~/workspace/ashumail cd ~/workspace/ashumail/deploy/compose ../scripts/secrets-load.sh # 2 — one-time break-glass super-admin seed export ASHUMAIL_BOOTSTRAP_ADMIN_EMAIL="admin@yourco.com" export ASHUMAIL_BOOTSTRAP_ADMIN_PASSWORD="a-strong-password" export ASHUMAIL_BOOTSTRAP_TENANT_SLUG="yourco" # 3 — start everything (Flyway migrates on boot) podman compose up -d # verify: the engine DKIM-signs + direct-sends podman logs ashumail-smtpd-1 | grep delivered
Illustrative, drawn from the setup guide. After first login you unset the bootstrap variables and restart — it's a seed, not a standing path.
The reference stack
Deliberately minimal — every service earns its place.
The app
A Java 25 / Spring Boot modular monolith: identity, tenancy, policy, the admin console, the webmail backend and the API — one deployable.
Own Rust mail engine
An in-house Rust MTA handling SMTP, IMAP4rev2, POP3 and JMAP-with-push, plus CardDAV and CalDAV — DKIM-signing and direct-sending your outbound mail.
Postgres + object store
One Postgres cluster (RLS-walled, partition-ready) for one backup story, with pluggable S3-API object storage — no vendor lock.
TLS termination
An HTTP reverse proxy fans HTTPS to the app and auto-issues Let's Encrypt certs; the mail ports go straight to the engine, which holds its own cert.
Scanning & scoring
ClamAV for antivirus and rspamd for spam scoring with Bayes that learns from user reports — fail-closed, so nothing slips through when a scanner is down.
Metrics & logs
Prometheus, Grafana and Loki in the stack; alerts are paged only when action is needed, and each links a runbook.
Durability
A backup isn't real until it's restored.
One of AshuMail's non-negotiable invariants. Backups are a scripted pg_dump plus the secrets vault, checksummed and encrypted before they leave the host — and a restore drill on a throwaway box is part of the day-one checklist, not a someday task.
- Scheduled backups, copied off-box so they survive node loss, not just corruption.
- A clean migration-and-restore path to move to a new host or recover.
- A second super-admin, provisioned before you rely on the platform.
Running it at home
Home-host the web app freely. Be careful with the mail engine.
Read this before investing time. Most residential ISPs block port 25 and won't give you a static public IP or PTR control — and mail servers are judged on all three. If your ISP blocks 25 or won't set PTR, you can't reliably send or receive mail from home, and no amount of port-forwarding fixes it. Check with telnet <mx> 25 and ask your ISP first.
The honest recommendation: home-host the web app — it only needs ports 80/443 and tolerates a dynamic IP with DDNS — and put the mail engine on a mail-friendly VPS. AshuMail's port-based design makes that split clean: point the engine config at the VPS over TLS and run the app wherever you like. Behind CGNAT, a Cloudflare Tunnel fronts the web UI; the mail engine still needs a genuinely reachable public host.
Zero recurring cost, spelled out.
What you pay for, what you never pay for, and how it compares to renting seats forever.