What is Mailpit?
Every stack sends email eventually - signups, resets, invoices - and testing it against real inboxes is how staging secrets leak and customers get confused. Mailpit is the modern answer (MailHog stopped updating in 2020): an SMTP sink that catches everything, with a fast UI for search, HTML preview, and link checking.
The project-network deployment is the killer version of it: every app in your Lyngbak project points its SMTP settings at mailpit:1025 - Ghost, Chatwoot, Keycloak, Typebot, anything - and all their mail lands in one authenticated UI. No per-inbox setup, no third party seeing your test data.
One tiny Go container, one variable. Hosted email-testing sandboxes charge ~$14/month for 500 test emails; Mailpit keeps your last 5,000 with no meter.
What you get
- Catches all SMTP from the project network (mailpit:1025)
- Web UI: search, HTML/source preview, link checking, API
- Basic-auth protected UI; messages persist on the volume
- MIT, actively maintained - the de-facto MailHog successor
- Zero configuration beyond one auth variable
- One of the smallest genuinely useful templates in the catalogue
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
mailpit | web UI (:5000 public) + SMTP sink (:1025 project-internal) | UI only |
Before you deploy
MP_UI_AUTHuser:password for the web UI
Sizing and billing
A single Go binary that idles around 30 MB - 256 MiB is generous. The 5,000-message cap keeps the volume tiny.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 0.98 GiB of volumes cost $0.15 per GiB a month ($0.15/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Mailtrap | Testing Basic | $14/mo | ~500 test emails/mo in the sandbox product - the exact job Mailpit does unmetered |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
How is this different from Mailtrap?
Same job - catch test email before it reaches humans - without the meter: Mailtrap’s testing plans are priced by volume, starting at 500 test emails. Mailpit keeps 5,000 with full search, and your message contents never leave your project.
How do apps send to it?
Set SMTP host mailpit, port 1025, no auth, no TLS - the project network is the boundary, and the SMTP port has no public route. Every template in this catalogue with SMTP settings works against it unchanged.
Is this for production email?
No - deliberately. Mailpit catches mail; it never delivers it. For real sending, configure a relay (SES, Resend, Postmark) in your apps, and use the listmonk template when the job is newsletters.