Mailpit Open source · MIT
An email and SMTP testing tool with API for developers.
Introduction
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. Mailpit was originally inspired by MailHog which is no longer maintained and hasn't seen active development or security updates for a few years now.
## Features
- Runs entirely from a single static binary or multi-architecture Docker images.
- Modern web UI with advanced mail search to view emails (formatted HTML, highlighted HTML source, text, headers, raw source, and MIME attachments including image thumbnails), including optional HTTPS & authentication.
- SMTP server with optional STARTTLS or SSL/TLS, authentication (including an "accept any" mode).
- A REST API for integration testing.
- Real-time web UI updates using web sockets for new mail & optional browser notifications when new mail is received.
- Optional POP3 server to download captured message directly into your email client.
- HTML check to test & score mail client compatibility with HTML emails.
- Link check to test message links (HTML & text) & linked images.
- SMTP relaying (message release) - relay messages via a different SMTP server including an optional allowlist of accepted recipients.
- SMTP forwarding - automatically forward messages via a different SMTP server to predefined email addresses.
## Installation
The Mailpit web UI listens by default on http://0.0.0.0:8025 and the SMTP port on 0.0.0.0:1025.
Email testingSMTP serverREST APIWeb UIDocker imagesPOP3 serverSpam check
Screenshots

Deployment
包管理器安装
适合在 macOS(Homebrew)、Arch Linux(AUR)或 FreeBSD(pkg)环境中通过系统包管理器快速安装并随系统管理运行。
一键安装脚本
适合 Linux 与 macOS 用户将 Mailpit 直接安装到 /usr/local/bin 或自定义路径。
静态二进制下载
适合 Windows、Linux 和 macOS 用户从官方 Releases 下载单文件可执行程序后直接运行或加入 PATH。
Docker 镜像
适合希望以容器方式在本地开发、CI 或自托管环境中运行 Mailpit 的团队。
源码编译
适合需要从源代码构建、自定义或参与开发 Mailpit 的用户。
Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.