Mailpit
mailpit.axllent.org
- Free plan
- Windows
- macOS
- Linux
- Web
- API
- Self-hosted
What Mailpit is
Mailpit is a free, open-source utility for developers testing email content and SMTP delivery without sending messages to real addresses. It runs a local SMTP server alongside a web interface and REST API, and is available as a single binary or Docker image for Windows, Linux, and Mac. The interface can show formatted HTML, source, text, headers, and MIME attachments, including image thumbnails. Checks include HTML compatibility, links, screenshots, and optional SpamAssassin scoring. You can tag, relay, or automatically forward messages, and configure SMTP errors for resilience testing. The API can access, search, delete, send, tag, and release messages; webhooks can send message summaries to external services. The UI and API support optional HTTPS and basic authentication, while SMTP can be configured with authentication and TLS. By default, SMTP listens on port 1025 without encryption or authentication, and Mailpit keeps the latest 500 messages. Optional POP3 exposes only the latest 100 messages.
Who it suits
Mailpit suits developers who need a local environment for email checks and integration testing, including CI/CD use. It provides a web interface, API, and deployment options for local or self-hosted setups.
Good to know, and what to watch
- Free and open source
- Inspects HTML, text, headers, and attachments
- Includes HTML and link checks
- REST API supports integration testing
- Available as binary or Docker image
- Default SMTP has no encryption or authentication
- Keeps only the most recent 500 messages by default
- Optional POP3 exposes only 100 messages
Plans
Every plan and priceMailpit
Open source
Getting started
- Download a static binary for Windows, Linux, or Mac, or use a Docker image
- Run Mailpit as a local or self-hosted service
- Point your application’s SMTP delivery to Mailpit
- Open the web interface to inspect captured messages
- Use the REST API for searches and integration tests
- Configure HTTPS, authentication, or SMTP TLS when required
Limits to check
Mailpit retains the most recent 500 emails by default. Its optional POP3 service exposes only the latest 100 messages, and the default SMTP setup has no encryption or authentication.
The verdict
Mailpit brings message inspection, automated checks, and SMTP testing together in a free developer utility. Review its default SMTP security settings and message retention before relying on it in a test setup.
Questions people ask
Does Mailpit cost anything?
No. Mailpit is free and open source.
Which platforms can run it?
It supports API, Linux, macOS, self-hosted, web, and Windows use, with static binaries and Docker images.
What can the web interface display?
It can show rendered HTML, highlighted HTML source, text, headers, raw source, and MIME attachments with image thumbnails.
Does Mailpit provide an API?
Yes. Its REST API can access, search, delete, send, tag, and release messages for integration testing.
What are the default SMTP settings?
SMTP listens on port 1025 without encryption or authentication by default. Authentication and TLS can be configured.
How many messages are retained?
The default retention keeps the most recent 500 emails. Optional POP3 access is limited to the latest 100 messages.
What the maker publishes
- Automated testing
- Mailpit offers a REST API for integration testing and a Chaos feature that can trigger configurable SMTP errors. source
- Automation
- Mailpit provides a REST API for accessing, searching, deleting, sending, tagging, and releasing messages. source
- Capacity and retention
- Mailpit reports SMTP ingestion of 100–200 emails per second depending on system and message factors, and by default prunes messages to keep the most recent 500. source
- Default SMTP configuration
- By default, SMTP listens on port 1025 without encryption or authentication. source
- Deployment
- Mailpit runs as a single binary or multi-architecture Docker image, and publishes static binaries for Windows, Linux, and Mac. source
- Developer features
- The web UI can show formatted HTML, HTML source, text, headers, raw source, and MIME attachments, including image thumbnails. source
- Email checks
- Mailpit offers HTML email compatibility checks, link checks, SpamAssassin-based spam checks, and HTML message screenshots. source
- Email rendering security
- The UI applies a strict Content-Security-Policy that blocks remote content other than images, stylesheets, and fonts, and sets a no-referrer policy. source
- Founded
- 2022 source
- HTML checks
- HTML Check compares messages against more than 175 HTML and CSS checks based on compatibility data from caniemail.com. source
- Install format
- Mailpit runs as a single binary or multi-architecture Docker image without additional dependencies. source
- Integrations
- Mailpit can send message-summary webhooks to external services, has been tested with n8n, and has a Cypress package for integration tests. source
- Integrations
- The project says Mailpit is used by projects including Laravel, DDEV, Quarkus, and Saleor, and in CI/CD pipelines. source
- Intended audience
- Mailpit is described as a development SMTP and email testing tool for developers, including use in CI/CD pipelines. source
- Intended users
- Mailpit is aimed at developers testing email functionality without sending messages to real email addresses. source
- Message handling
- Messages can be tagged, relayed through another SMTP server, automatically forwarded, or used to trigger configurable SMTP errors for resilience testing. source
- Message inspection
- The web UI can display formatted HTML, highlighted HTML source, text, headers, raw source, and MIME attachments with image thumbnails. source
- Network safety
- Link checking blocks requests to internal networks by default to help prevent server-side request forgery. source
- Notable limits
- Mailpit keeps the most recent 500 emails by default, and its SMTP server allows up to 100 recipients per message by default. source
- Other testing tools
- Features include link checking, HTML message screenshots from the web UI, and optional spam scoring through SpamAssassin. source
- Platform support
- The installation guide provides static binaries for Windows, Linux, and Mac, plus Docker images for 386, amd64, and arm64. source
- POP3 limit
- The optional POP3 service makes only the latest 100 messages available for performance reasons. source
- Privacy protections
- The UI uses a strict Content-Security-Policy and a no-referrer policy; tracking images are still allowed. source
- Project history
- Mailpit was first released on July 30, 2022. source
Checked against the maker's pages on 4 Oct 2026.