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.

Required

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.

Required

NVMe storage, snapshot-capable

250 GB or more, with a provider whose terms of service permit running a mail server.

Recommended

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

Required

The install

Fresh host to first delivered email.

01

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.

02

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.

03

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.

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.

Control plane

The app

A Java 25 / Spring Boot modular monolith: identity, tenancy, policy, the admin console, the webmail backend and the API — one deployable.

Data plane

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.

Storage

Postgres + object store

One Postgres cluster (RLS-walled, partition-ready) for one backup story, with pluggable S3-API object storage — no vendor lock.

Edge

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.

Anti-abuse

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.

Observability

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.
restore-drillverified
test send delivered after restore

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.