Self-host Mailpit with Levelrail

Verified

A local SMTP server and web inbox for catching and inspecting outgoing email during development.

  • AuthoraxllentVerified by Levelrail
  • LicenceMIT
  • Memory128 MiB
  • Archarm64
  • Services1

How to self-host Mailpit

  1. Pull the images

    One image is pulled on your server.

    Show images
    • axllent/mailpit:v1.21.8
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 8025.

  3. Fill in the secrets

    1 setting is preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Mailpit requirements

Memory
About 128 MiB
Architectures
amd64 image published, arm64 tested
Ports
8025
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
MIT, permissive license
  • Verified. Verified on arm64 with image tag v1.21.8. Our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 8025 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Mailpit. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Mailpit docs page.

Deploy Mailpit your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Mailpit from the CLI

levelrail-cli templates deploy mailpit --name my-mailpit

Deploy Mailpit with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/mailpit/deploy

Mailpit configuration

Mailpit services

ServiceImagePortsVolumes
mailpit axllent/mailpit:v1.21.8 8025 mailpit_data -> /data

Mailpit environment variables

VariableServiceValue
MP_DATABASE mailpit Preset by the template

Ports and volumes

Ports
8025
Volumes
1 named mount: mailpit_data -> /data

Mailpit FAQ

How much memory does Mailpit need?

The catalog lists about 128 MiB of memory for Mailpit.

Does Mailpit run on arm64?

For Mailpit, arm64 is tested; amd64 is image published.

What licence is Mailpit under?

Mailpit is licensed under MIT, which is permissive, with few conditions on reuse.

Does Mailpit need configuration before it starts?

No. The template fills in its own defaults.

Which ports does Mailpit use?

Mailpit listens on port 8025 inside the stack.

Where does Mailpit keep its data?

In a named volume: mailpit_data mounted at /data.

Can I deploy Mailpit on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id mailpit for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image axllent/mailpit:v1.21.8 is what you deploy there.

levelrail-cli templates deploy mailpit --name my-mailpit