Skip to content

Notifications

Self-host Mailpit

SMTP trap for development — every message your apps send lands in a web inbox instead of a real one, with an API to assert on.

Deploy Mailpit with Nixploy

Install Nixploy on any Docker host — a €5 VPS is enough for most of these:

install.sh
curl -fsSL https://raw.githubusercontent.com/bablilayoub/nixploy/main/install.sh | sudo bash
  1. 1

    Open Templates in the panel

    Search for Mailpit and open it. The compose file, the variables and the suggested domain are already filled in.

  2. 2

    Give it a domain

    Point a DNS record at your server and enter it. Traefik requests the certificate on the first request — there is no separate certbot step and nothing to renew by hand.

  3. 3

    Deploy

    Nixploy renders the compose file, validates it against the platform's safety rules, and brings the stack up on a private per-environment network. Live logs stream while it happens.

  4. 4

    Schedule a backup

    Mailpit keeps its state in a named volume (mailpit-data). Add a schedule and Nixploy streams the dump to S3 or to disk, encrypted, and can verify a restore.

What this deploys

Images
  • axllent/mailpit:latest
Routed to
mailpit:8025
Persistent volumes
mailpit-data
Variables it asks for
  • MP_UI_AUTHOptional "user:password" pair protecting the web UI — leave empty only on a private network

What you get with it

  • Automatic HTTPS through Traefik and Let's Encrypt, renewed for you.

  • Live logs, a web terminal into the container, and CPU/memory/network history.

  • Encrypted backups to S3 or disk, on a schedule, with verified restores.

  • Roll back to the previous version when an update goes wrong.

  • An MCP endpoint, so an AI agent can deploy, read the logs and diagnose it for you — see the MCP guide.

Why self-host Mailpit?

Running it yourself means the data lives on a disk you control, there is no per-seat price as the team grows, and nothing is retired or repriced by somebody else. The cost is the part Nixploy takes over: a reverse proxy, certificates that renew, a volume that survives a redeploy, backups you can actually restore, and a way to see the logs when it misbehaves.

Mailpit upstream

Nixploy packages the project; it is not affiliated with it. Website · Docs · Source

All 146 templates

Rent the box. Keep the rest.

One command, three services, and the first account is yours.