Mailpit
mailpit.axllent.org
What it is
Mailpit is a free, open-source tool for checking 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 for Linux, macOS, Windows, Docker, and self-hosted deployment. The interface displays formatted HTML, source, text, headers, raw messages, and MIME attachments with image thumbnails. Checks include HTML and link testing, message screenshots, and optional SpamAssassin scoring. The API can access, search, send, delete, tag, and release messages; messages can also be relayed, forwarded, or used to trigger configurable SMTP errors. Mailpit can send message-summary webhooks and offers a Cypress package for integration tests. The web UI and API can use HTTPS and basic authentication; SMTP supports optional authentication and TLS. By default, SMTP listens on port 1025 without encryption or authentication. Mailpit keeps the most recent 500 messages by default.
Spec sheet
- Purpose
- Mailpit is an open-source utility for testing emails and SMTP delivery, with a local SMTP server, web interface, and integration-testing API.Read 4 Oct 2026 · mailpit.axllent.org
- Intended users
- Mailpit is aimed at developers testing email functionality without sending messages to real email addresses.Read 4 Oct 2026 · mailpit.axllent.org
- Deployment
- Mailpit runs as a single binary or multi-architecture Docker image, and publishes static binaries for Windows, Linux, and Mac.Read 4 Oct 2026 · mailpit.axllent.org
- Integrations
- The project says Mailpit is used by projects including Laravel, DDEV, Quarkus, and Saleor, and in CI/CD pipelines.Read 4 Oct 2026 · mailpit.axllent.org
- Security
- The web UI supports optional HTTPS and basic authentication, while SMTP can be configured with authentication and TLS.Read 4 Oct 2026 · mailpit.axllent.org
- Support
- The troubleshooting guide invites users to raise an issue after checking existing issues first.Read 4 Oct 2026 · mailpit.axllent.org
- Founded
- 2022Read 28 Sep 2026 · mailpit.axllent.org
- Automated testing
- Mailpit offers a REST API for integration testing and a Chaos feature that can trigger configurable SMTP errors.Read 4 Oct 2026 · mailpit.axllent.org
- Automation
- Mailpit provides a REST API for accessing, searching, deleting, sending, tagging, and releasing messages.Read 4 Oct 2026 · mailpit.axllent.org
- 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.Read 4 Oct 2026 · mailpit.axllent.org
- Default SMTP configuration
- By default, SMTP listens on port 1025 without encryption or authentication.Read 4 Oct 2026 · mailpit.axllent.org
- Developer features
- The web UI can show formatted HTML, HTML source, text, headers, raw source, and MIME attachments, including image thumbnails.Read 4 Oct 2026 · mailpit.axllent.org
- Email checks
- Mailpit offers HTML email compatibility checks, link checks, SpamAssassin-based spam checks, and HTML message screenshots.Read 4 Oct 2026 · mailpit.axllent.org
- 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.Read 4 Oct 2026 · mailpit.axllent.org
- HTML checks
- HTML Check compares messages against more than 175 HTML and CSS checks based on compatibility data from caniemail.com.Read 4 Oct 2026 · mailpit.axllent.org
- Install format
- Mailpit runs as a single binary or multi-architecture Docker image without additional dependencies.Read 4 Oct 2026 · mailpit.axllent.org
- Intended audience
- Mailpit is described as a development SMTP and email testing tool for developers, including use in CI/CD pipelines.Read 4 Oct 2026 · mailpit.axllent.org
- Message handling
- Messages can be tagged, relayed through another SMTP server, automatically forwarded, or used to trigger configurable SMTP errors for resilience testing.Read 4 Oct 2026 · mailpit.axllent.org
- Message inspection
- The web UI can display formatted HTML, highlighted HTML source, text, headers, raw source, and MIME attachments with image thumbnails.Read 4 Oct 2026 · mailpit.axllent.org
- Network safety
- Link checking blocks requests to internal networks by default to help prevent server-side request forgery.Read 4 Oct 2026 · mailpit.axllent.org
- Notable limits
- Mailpit keeps the most recent 500 emails by default, and its SMTP server allows up to 100 recipients per message by default.Read 4 Oct 2026 · mailpit.axllent.org
- Other testing tools
- Features include link checking, HTML message screenshots from the web UI, and optional spam scoring through SpamAssassin.Read 4 Oct 2026 · mailpit.axllent.org
- Platform support
- The installation guide provides static binaries for Windows, Linux, and Mac, plus Docker images for 386, amd64, and arm64.Read 4 Oct 2026 · mailpit.axllent.org
- POP3 limit
- The optional POP3 service makes only the latest 100 messages available for performance reasons.Read 4 Oct 2026 · mailpit.axllent.org
- Privacy protections
- The UI uses a strict Content-Security-Policy and a no-referrer policy; tracking images are still allowed.Read 4 Oct 2026 · mailpit.axllent.org
- Project history
- Mailpit was first released on July 30, 2022.Read 4 Oct 2026 · mailpit.axllent.org
- Security controls
- The web UI and API can use HTTPS and basic authentication, while SMTP supports optional STARTTLS or SSL/TLS and authentication.Read 4 Oct 2026 · mailpit.axllent.org
Plans and prices
Strong points and limits
Strong points
- Displays HTML, text, headers, source, and attachments.
- Checks HTML compatibility and links.
- REST API supports integration testing and message management.
- Runs as a binary or Docker image without dependencies.
Limits
- Default SMTP has no encryption or authentication.
- Default retention is the most recent 500 messages.
- Optional POP3 exposes only the latest 100 messages.
Who it suits
Mailpit suits developers testing email behavior and SMTP delivery, including in CI/CD pipelines. It is useful when tests need message inspection, automated checks, or configurable SMTP failures without using real email addresses.
Mailpit in depth
Read the full write-up
Mailpit is a free, open-source SMTP and email testing tool for developers. It is best suited to local development and CI/CD workflows that need to inspect messages and automate delivery scenarios. Its broad testing toolkit is useful, but the default message cap and unsecured SMTP listener need attention.
Overview
Mailpit combines a local SMTP server, a web interface for inspecting messages, and an API for integration testing. It can run as a single binary or a multi-architecture Docker image without additional dependencies, making it straightforward to include in a development environment or pipeline. It is a testing tool, not a production mail-delivery service: its purpose is to let developers exercise email functionality without sending messages to real addresses.
Key features
Inspect and check email
The web interface presents formatted HTML, highlighted HTML source, text, headers, raw source, and MIME attachments, including image thumbnails. That range helps developers distinguish a presentation issue from a problem in the underlying message. HTML Check applies more than 175 HTML and CSS checks based on compatibility data from caniemail.com. Link checks and HTML screenshots add useful checks before release, while optional SpamAssassin-based spam scoring offers another signal for message testing.
Test delivery behavior and automate
Messages can be tagged, relayed through another SMTP server, automatically forwarded, or used to trigger configurable SMTP errors with the Chaos feature. This makes Mailpit useful for checking how an application handles delivery failures as well as for inspecting successful output. Its REST API supports accessing, searching, deleting, sending, tagging, and releasing messages, which lends itself to repeatable integration tests. Message-summary webhooks can notify external services; Mailpit has been tested with n8n and offers a Cypress package for integration tests.
Security and operational limits
The web UI and API can use HTTPS and basic authentication, while SMTP supports optional authentication and TLS. The UI applies a strict Content-Security-Policy and a no-referrer policy, though it still allows tracking images. Link checking blocks requests to internal networks by default, helping guard against server-side request forgery. These controls are configurable rather than the default SMTP posture: SMTP listens on port 1025 without encryption or authentication unless changed. Configure it carefully wherever other users or services can reach the listener.
Mailpit reports SMTP ingestion of 100–200 emails per second depending on system and message factors, but its default retention keeps only the most recent 500 messages. The optional POP3 service exposes only the latest 100 for performance reasons, and the SMTP server allows up to 100 recipients per message by default. These defaults suit bounded test workloads better than long-term message archiving.
Pricing
Mailpit is free and open source, with no free trial. Its Mailpit plan costs nothing and includes a single static binary or multi-architecture Docker images, with default retention of the most recent 500 emails. There are no paid tiers or seat charges to weigh; the practical trade-off is that the free plan's default retention is limited, so teams with larger test volumes should account for pruning in their workflow.
Platforms
Mailpit supports API, Linux, macOS, self-hosted, web, and Windows use. Static binaries are provided for Windows, Linux, and Mac, and Docker images cover 386, amd64, and arm64. Its single-binary and Docker deployment options make it suitable for both a developer workstation and a self-hosted test environment.
Who it's for
Mailpit is a strong fit for developers who need to capture application email locally, inspect its structure and rendering, or test delivery behavior without contacting real recipients. Its API, Cypress package, and webhook support also suit teams adding email scenarios to integration testing or CI/CD. It is less suitable for anyone seeking a production sending platform, a long-retention archive, or SMTP that is secure by default without configuration.
Pros and cons
Pros: Detailed message inspection spans rendered content, source, headers, and attachments, helping pinpoint defects across the whole email.
Pros: HTML, link, spam, and screenshot checks provide several ways to catch email problems before delivery.
Pros: REST API and configurable SMTP errors support automated tests of both normal and failure paths.
Pros: Free, open-source deployment as a standalone binary or Docker image avoids an additional service dependency.
Cons: SMTP begins without encryption or authentication, so users must configure safeguards when the listener is exposed beyond a trusted test environment.
Cons: The default 500-message retention and 100-message POP3 window constrain how much history can be kept or accessed.
Cons: Tracking images remain allowed in the UI despite its other rendering protections.
Alternatives
Email Testing Software is the broader category to compare if Mailpit's local, self-hosted testing model is not the right fit.
Choose Twilio Segment instead if web, iOS, or Android platform support and a free plan with visitor and Reverse ETL quotas are a better match. For real-device email rendering, EmailQA offers a free tier with three projects, two team members, 25 renders per month, and seven-day render history, plus a Pro plan at $20 a month. Mailinator is another freemium alternative with private inbox and domain allowances on its Verified Pro free plan.
If spam and domain reputation monitoring is the priority, GlockApps has a free plan with two spam test credits, DMARC monitoring, uptime monitors, and one user. RenderOps may suit developers looking for a free set of client-side email utilities. MailSlurp instead offers a freemium API service with monthly email, sandbox-send, render, and inbox-creation quotas. For another free, open-source email testing tool, consider MailHog. Mailtrap Email Sandbox is a freemium alternative with a free sandbox capped at 50 test emails per month, one user, and one sandbox.
Verdict
Choose Mailpit if you want a free, self-hostable way to capture, inspect, and automate email tests without sending messages to real recipients. Its inspection and testing breadth make it particularly useful in development and CI/CD. Look elsewhere if you need a production mail service or a larger default message history, and configure SMTP security before making the listener reachable to untrusted systems.
Verdict
Mailpit combines local message capture with inspection, automated checks, and API-based testing. Its default SMTP security and retention settings are important to account for when configuring a test environment.
Where Specifiction places it
- Email Testing Software#6 of 288.6