Best OSS replacement for MailHog with active maintenance
Try MailpitMailpit is the modern continuation of the dev-test SMTP capture model that MailHog established. Single Go binary or Docker image, MIT licensed, actively maintained. SMTP server, IMAP4 server, REST API, web UI with HTML, CSS, text, and raw views, and SpamAssassin integration when you want it. For developers who self-host their dev stack and do not want a paid SaaS in the loop, Mailpit is a clean fit. It does not solve team collaboration or inbox-placement testing.
Strengths
- +MIT licensed and actively maintained
- +Drop-in MailHog replacement
- +Single binary or Docker image
- +Web UI with HTML, CSS, text, and raw views
Trade-offs
- −No team collaboration features
- −No spam-score breakdown as polished as Mailtrap's
- −You self-host and self-monitor
- License
- MIT
- Stack
- Go single binary
- Capture
- SMTP + IMAP4 + API
- Cost
- Free, self-hosted
Migration steps
- Run mailpit via Docker image or download the binary.
- Point your app SMTP at mailpit:1025.
- Open the web UI on :8025 and confirm captures arrive.
- Phase out Mailtrap in dev once the team workflow is comfortable.
Not for: Mailpit is the wrong pick when you need a managed SaaS with team accounts, audit logs, or formal SOC 2.