# Mailpit

> An email and SMTP testing tool with API for developers

Source: https://talira.ai/catalog/mailpit-qq9rm9v9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Web app, Command-line tool
- Categories: [developer tools / testing / email sandbox](https://talira.ai/categories/developer-tools/testing/email-sandbox)
- Platforms: linux, macos, windows, docker[^6]
- Licence: MIT[^5]
- Pricing: Free and open source[^5]
- Free tier: yes[^5]
- Self-hostable: yes[^6]
- API: yes[^7]
- Creator: Ralph Slooten

Mailpit is an email testing tool for developers: it runs an SMTP server that catches everything your app sends, shows it in a modern web UI (HTML, source, text, headers, attachments) and has a REST API for integration tests. It checks HTML emails against mail clients, tests links, scores spamminess through SpamAssassin or Rspamd, can relay or forward chosen messages, and can return configurable SMTP errors to test resilience. It's a single static binary or [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image, MIT-licensed, by Ralph Slooten, and was inspired by [MailHog](https://talira.ai/catalog/mailhog-kgepk824.md), which is no longer maintained.

## Links

- Website: https://mailpit.axllent.org
- GitHub: https://github.com/axllent/mailpit
- Docs: https://mailpit.axllent.org/docs/

## Ways to install

### On your own server

- [YunoHost](https://talira.ai/catalog/yunohost-f9asga4s.md): <https://apps.yunohost.org/app/mailpit>[^1]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/mailpit>[^2]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/mailpit>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/mailpit>[^4]

## Problems it solves

- catch every email my app sends in development so none reach real customers
- see what our password reset email looks like without sending it to a real inbox
- assert in integration tests that the signup email was sent with the right link
- check our HTML email renders properly in Outlook and Gmail
- find broken links in our transactional emails before release
- test how our app handles the SMTP server rejecting or timing out
- a local SMTP server for staging that we can view from a browser
- replace MailHog, which no longer gets updates

## Features

- SMTP server with STARTTLS, SSL/TLS and authentication
- web UI with search, HTML, source, headers and attachments
- REST API for integration testing
- HTML compatibility check, link check and spam check
- SMTP relaying and forwarding
- chaos mode for SMTP errors
- POP3 server
- webhooks for received messages
- message tagging
- single static binary and multi-architecture Docker images

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Sends webhooks: plan not known

## Trust

Overall: 0.39 out of 1.
Signals: backing 0.20, extensibility 0.60.

- created by Ralph Slooten

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [MailCatcher](https://talira.ai/catalog/mailcatcher-p3k1rf3v.md): Catches mail and serves it through a dream
- [Mailtrap](https://talira.ai/catalog/mailtrap-j34knxxh.md): We Send Emails
- [MailHog](https://talira.ai/catalog/mailhog-kgepk824.md): Web and API based SMTP testing

## Sources

[^1]: https://app.yunohost.org/default/v3/apps.json (checked 21 Nov 2026)
[^2]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/mailpit.sh (checked 21 Nov 2026)
[^3]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^5]: https://github.com/axllent/mailpit/blob/develop/LICENSE (checked 19 Nov 2026)
[^6]: https://mailpit.axllent.org/docs/install/ (checked 19 Nov 2026)
[^7]: https://mailpit.axllent.org/docs/api-v1/ (checked 19 Nov 2026)
