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)
Mobile and tablet HTML preview toggle in desktop mode
Message tagging including manual tagging or automated tagging using filtering and "plus addressing"
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
Fast message storing & processing - ingesting 100-200 emails per second over SMTP depending on CPU, network speed & email size,
easily handling tens of thousands of emails, with automatic email pruning (by default keeping the most recent 500 emails)
Chaos feature to enable configurable SMTP errors to test application resilience
You need to ensure you map the correct ports (default Web UI on 8025 and SMTP on 1025).
Setting Mailpit options
Refer to the website for a list of runtime options. Environment variables can be set using the -e flag when starting your docker container, for instance: