About Mailpit
Mailpit acts as an SMTP server that catches email sent by an application under test and shows the messages in a web interface. It is described as small, fast, low on memory, free of dependencies and multi-platform, and it ships as a single static binary or a multi-arch Docker image.
The web UI updates live when new mail arrives, with an unread counter in the favicon and browser notifications. Messages can be searched and filtered, tagged manually or automatically, and checked with an HTML and CSS compatibility test for common email clients, a link checker and a SpamAssassin spam score.
For automation, a REST API lets integration tests view, read and process captured messages, and a webhook can trigger external processes on delivery. A POP3 server lets an email client download messages, and relaying or forwarding sends them on through an external SMTP server. A chaos feature triggers configurable SMTP errors to test resilience.
Key features
- Single static binary or Docker image
- HTML and CSS compatibility checker
- Link checker for message links and images
- REST API for integration tests
- POP3 server for email clients
- Configurable SMTP errors for resilience testing
- Webhook when messages arrive
Good fit for
- Checking transactional emails during development
- Integration tests that read captured mail
- Testing how apps handle SMTP errors
Mailpit: questions and answers
- What is Mailpit used for?
- Mailpit is a small email and SMTP testing tool that captures messages in a web interface and exposes a REST API for tests. It is a good fit for checking transactional emails during development, integration tests that read captured mail and testing how apps handle SMTP errors.
- Is Mailpit open source?
- Yes. Mailpit is open source under the MIT licence. Its source code is on GitHub at axllent/mailpit and is written mainly in Go.
- Is Mailpit free?
- Yes. Mailpit is open source, so the software itself is free to use.
- Can I self-host Mailpit?
- Yes. Mailpit can be self-hosted on your own server or infrastructure.
- What is Mailpit an alternative to?
- Mailpit is an open-source alternative to Mailtrap. Other open-source alternatives to Mailtrap include Postal and Plunk.
- Is Mailpit actively maintained?
- Yes. The most recent commit to Mailpit was on 10 November 2026, and the latest release is v1.33.1, published on 7 November 2026. The project has 11k stars on GitHub, with 305 added in the last 30 days.
Open-source alternatives to Mailpit
See all
Postal
Email Marketing
๐ฎ A fully featured open source mail delivery platform for incoming & outgoing e-mail
MITvs SendGridโ 17k
Plunk
Email Marketing
The Open-Source Email Platform
AGPL-3.0vs SendGridโ 5.6k
docker-mailserver
Email Clients & Servers
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus,
MITvs Gmailโ 20k
Mailu
Email Clients & Servers
Insular email distribution - mail server as Docker images
OSSvs Gmailโ 7.6k
Stalwart
Email Clients & Servers
All-in-one Mail & Collaboration server. Secure, scalable and fluent in every protocol (IMA
OSSvs Google Workspaceโ 16k
Mailcow
Email Clients & Servers
mailcow: dockerized - ๐ฎ + ๐ = ๐
GPL-3.0vs Google Workspaceโ 14k
SaaS alternatives to Mailpit
See all
Mailtrap
Email Marketing
Email sandbox for testing plus a sending API for transactional email
SaaS
OhMySMTP
Email Clients & Servers
Transactional email API for developers, privacy-first and EU-hosted
SaaSAgentInbox
Email Clients & Servers
Disposable inboxes for autonomous workflows that receive emails and OTPs and extract magic links
SaaS
OpenInbox
Email Clients & Servers
Disposable email inboxes via API with webhooks and custom domains for developers and QA teams
SaaS
Anjal
Email Clients & Servers
Email APIs, IMAP/SMTP access and custom domains so AI agents can send, receive and manage email
SaaS
ImprovMX
Email Clients & Servers
Email forwarding service for custom domains
SaaS

