Self-host Mailpit
v1.33.1Mail catcher for dev testing with web UI and API
docker run -d --restart unless-stopped --name=mailpit -p 8025:8025 -p 1025:1025 axllent/mailpit- Stars
- 10 891
- Ports
- 8025 (Web UI and REST API (HTTP/HTTPS)), 1025 (SMTP server), 1110 (Optional POP3 server for downloading captured messages)
axllent/mailpitWhat is Mailpit?
Mailpit is a lightweight email-testing tool for developers: it runs a local SMTP server, captures everything sent to it, and shows the messages in a browser so you can check an application's mail output without ever reaching real inboxes. Captured mail can be searched with filters (by To, From, Subject, read state, tags, attachments), inspected as formatted HTML, highlighted source, plain text, headers or raw MIME, and appears live through web sockets with optional browser notifications. A JSON API lets automated test suites read and manage stored messages, and an optional POP3 endpoint lets a normal mail client pull them in. Extras include HTML client-compatibility scoring, link checking, screenshot generation of HTML messages, message tagging, spam scoring through a running SpamAssassin server, SMTP relaying and forwarding of captured mail, a Chaos mode for exercising SMTP error handling, a webhook on receipt, and optional Prometheus metrics. Nothing has to be installed next to it: storage is an embedded SQLite database (an optional remote rqlite cluster is supported instead), and old messages are pruned automatically, keeping the newest 500 by default. Self-hosting means one Go static binary (Homebrew, AUR, FreeBSD pkg, install script, or a release download) or the axllent/mailpit container; the browser UI is served from 8025 while SMTP listens on 1025, and HTTPS plus basic authentication can be switched on. The project, first released in July 2022 and MIT-licensed, was inspired by the unmaintained MailHog. It is single-user oriented — team workflows, several inboxes and a hosted option are pointed at the separate Mailtrap service.
Mailpit alternatives
BichonSelf-hosted, open-source email archiver written in Rust that pulls mail over IMAP or OAuth2, indexes it for full-text search, and serves a WebUI and REST API.CompareBichon with Mailpit
MoxOpen-source, self-hosted all-in-one email server with SMTP, IMAP4, webmail, junk filtering and automatic ACME TLS, set up for your own domain via quickstart.CompareMox with Mailpit
forsaken-mailForsaken-Mail is a self-hosted, open-source disposable email service for receiving mail at temporary addresses on your own domain with a web UI and built-in SMTP server.Compareforsaken-mail with Mailpit
Mail HubSelf-hosted temporary email aggregator unifying 10+ providers behind one REST API with auto-polling and code extraction.CompareMail Hub with Mailpit
plMailSelf-hosted, open-source mail client unifying IMAP, Gmail, and Outlook with calendar, file integrations, and optional AI features.CompareplMail with Mailpit
LanQin EmailLanQin Email is an open-source self-hosted webmail with multi-domain support, DKIM, anti-spam, and single-container Docker deployment.CompareLanQin Email with Mailpit
Stalwart Mail ServerSelf-hosted, open-source Rust mail server with calendars, contacts and shared files over JMAP, IMAP, POP3, SMTP and the DAV protocols, plus built-in anti-spam.CompareStalwart Mail Server with Mailpit
OpenTrashmailOpen Trashmail is a self-hosted, open-source disposable email solution with its own SMTP server, web UI, JSON API, RSS feeds, and webhooks.CompareOpenTrashmail with Mailpit
Should you self-host Mailpit?
Mailpit scores 77/100 on selfhost.directory (how scoring works) and ranks #2 of 109 in Email. It has 10 891 GitHub stars, +333 in the last 30 days.
It shipped 25 stable releases in the past year. The latest, v1.33.1, came out on 7 November 2026. New versions land roughly every 2 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Listmonk (80/100, 24 233 stars). It scores higher overall, so compare the two before you pick. See Mailpit vs Listmonk side by side.
Features
- Automatic message pruning
- Chaos testingDisabled unless --enable-chaos is set.
- HTML compatibility check
- HTML message screenshots
- HTTPS / TLS support
- Link Check
- Message tagging
- POP3 serverRequires POP3 authentication to be configured; only the latest 100 messages are served.
- Prometheus MetricsOff by default.
- Real-time UI updates & new-mail notifications
- REST API
- SMTP capture server
- SMTP relaying & forwarding
- Spam CheckNeeds --enable-spamassassin and a SpamAssassin server.
- Web UI with advanced mail search
Mailpit README
Website • Documentation • API
Mailpit is a small, fast, low memory, zero-dependency, multi-platform email testing tool & API for developers.
It acts as an SMTP server, provides a modern web interface to view & test captured emails, and includes an API for automated integration testing.
More in Email
mailriseMailrise is a self-hosted, open-source SMTP server that transforms emails into Apprise notifications for 60+ services like Matrix, Nextcloud, and mobile push.
mailspring-apiSelf-hosted API server replacing Mailspring's official sync backend, enabling metadata sync, read receipts, link tracking, and scheduled sending for the email client.
mailtrainSelf-hosted newsletter app for email marketing. Built on Node.js with MySQL/MariaDB, MongoDB, Redis. Features subscriber lists, segmentation, MJML templates.
MailuSelf-hosted open-source Docker-based mail server providing IMAP/SMTP services, webmail access, and admin interface. Replaces complex groupware setups.
MauticA self-hosted, open-source marketing automation platform: email campaigns, lead nurturing, landing pages, web tracking, plus a REST API and webhooks.
mbox-web-viewerA self-hosted, open-source Node.js tool that serves a web interface for browsing mbox email files, watching for live changes and supporting multiple email addresses.
MillionSendSelf-hosted email platform sending via your AWS SES with Resend-compatible API, dashboard, SMTP relay, webhooks, and broadcast campaigns.
mlmmjmlmmj is a simple, lightweight, and efficient mailing list manager inspired by ezmlm, designed for easy integration with various Mail Transport Agents (MTAs) and minimal resource usage.
ModoboaMail hosting made simple
MoxOpen-source, self-hosted all-in-one email server with SMTP, IMAP4, webmail, junk filtering and automatic ACME TLS, set up for your own domain via quickstart.
NetSendoSelf-hosted email marketing and automation platform with email campaigns, SMS, workflows, CRM, analytics, AI integrations, and webinar hosting.
NewsletterrSelf-hosted Flask app that turns Plex/Jellyfin analytics into beautiful email newsletters with Tautulli data, Conjurr recommendations, scheduling, and multiple layouts.




0 comments