Mailpit

Open source

Mailpit is a small email and SMTP testing tool that captures messages in a web interface and exposes a REST API for tests.

Open-source alternative to

mailpit.axllent.org
Mailpit homepage screenshot
GitHub stars
11k
Last 30 days
+305(+3%)
Last commit
3 days ago
Repository age
4 years
Version
v1.33.1
Licence
MIT
Self-hosted
Yes

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
Built with
Go tools
Tags
email testing
smtp
developer tools
rest api
docker
mail catcher

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

SaaS alternatives to Mailpit

See all