# Mailpit

Mailpit is a multi-platform email testing tool & API for developers. It is open source and self-hosted, installable on Docker Hub, Unraid, Proxmox, Kubernetes (Helm), TrueNAS and ZimaOS.

Canonical page: https://ourlocalhost.com/app/331/mailpit

## Description

Mailpit is a multi-platform email testing tool & API for developers. It acts as both an SMTP server, and provides a web interface to view all captured emails. It also contains an API for automated integration testing. Mailpit is inspired by MailHog, but modern and much, much faster.

## Platform availability

Available on 6 of 10 platforms: Unraid, TrueNAS, ZimaOS, Proxmox, Helm, Any server.

## Health score

91/100 (Excellent), based on 3 of 4 factors.
- Maintained: 100 (last commit 18 days ago)
- Popular: 81 (10,840 GitHub stars)
- Easy to install: 85 (6 install platforms, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/axllent/mailpit
- Unraid: https://ca.unraid.net/apps/mailpit-0chxo7g18ls19c?q=Mailpit
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=mailpit
- Kubernetes (Helm): https://artifacthub.io/packages/helm/jouve/mailpit
- TrueNAS: https://apps.truenas.com/catalog/mailpit/
- ZimaOS: https://github.com/bigbeartechworld/big-bear-casaos/tree/master/Apps/mailpit
- GitHub: https://github.com/axllent/mailpit
- Official website: https://mailpit.axllent.org
- Documentation: https://mailpit.axllent.org/docs/

## Common questions

### How do I keep Mailpit available after a reboot on a systemd host?

If the install created a systemd unit, run systemctl start mailpit.service. If it was not configured, you may need to launch Mailpit manually after a reboot.

### What should I configure before exposing the Mailpit web UI?

Add a username/password file and a TLS certificate using --ui-auth-file and --ui-tls-cert/--ui-tls-key. Without them, anyone on your network can open Mailpit and logins can be intercepted over unencrypted HTTP.

### Why does a Laravel app in Docker fail to connect to Mailpit?

The connection error can be caused by failed name resolution for the Mailpit host.

### Why does Mailpit stop intercepting emails in LocalWP on Windows?

There is a known issue with Apache on Windows where Mailpit stops intercepting email messages. Switching to nginx is suggested as a workaround.

## Alternatives

- FakeSMTP: FakeSMTP is a Free Fake SMTP Server with GUI for testing emails in applications easily.
- Gmailnator (Emailnator): Gmailnator, Smartnator or Emailnator is a free service that allows getting instant temporary email it is also known as &quot;tempmail&quot;…
- MailCatcher: MailCatcher is a simple SMTP (Simple Mail Transfer Protocol) server and web viewer that catches emails sent to it so developers and self-ho…
- Mailtrap: Mailtrap is an Email Delivery Platform for businesses and individuals to Test, Send, and Control their email infrastructure performance.
- Papercut: Papercut is a simplified SMTP server designed to only receive messages (not to send them on) with a GUI on top of it allowing you to see th…
- Postfix: Postfix is a fast, secure SMTP (Simple Mail Transfer Protocol) mail server that administrators can use to accept, relay, and deliver email…
- maildev: MailDev is a lightweight simple mail transfer protocol (SMTP) server and web interface for viewing and testing emails during development.
- mailhog: MailHog is an email testing tool for developers that captures outgoing SMTP messages locally, shows them in a web UI or JSON API, and can o…

---
Source: Our Local Host (https://ourlocalhost.com/app/331/mailpit), the self-hosted and open-source app directory.
