MailSandbox (btafoya/mailsandbox) is a fork of Mailpit, positioned as an email testing and simulation tool for developers. Its core purpose is to replace the problem of accidentally sending real emails during development with a fast, low-memory, zero-dependency, cross-platform tool, providing an SMTP server, a modern web interface, a REST API, Postmark API simulation, and an MCP server for AI-assisted workflows.
Purpose It is mainly used in local or development environments to intercept, inspect, and debug emails sent by applications, avoiding real delivery. Through Postmark API simulation, Postmark can be directly replaced during development for testing; through the MCP server, AI assistants (such as Claude Code) can list, search, and analyze messages to assist with debugging.
Main Capabilities
- Lightweight: a single static binary or multi-architecture Docker image.
- Modern Web UI: view HTML, source, headers, attachments, with search and filtering support.
- Server support: SMTP and POP3 servers, with STARTTLS/SSL/TLS, authentication, forwarding, and relaying support.
- Testing tools: HTML checks, link checks, spam scoring, screenshots, mobile previews.
- Tags and filtering: manual or automatic (including plus addressing).
- Performance: 100–200 emails per second, automatic cleanup (500 retained by default).
- Chaos mode: inject SMTP errors to test resilience.
- Integrations: Webhook, browser notifications, List-Unsubscribe validation.
- Postmark API simulation: can directly replace Postmark during development.
- MCP server: AI assistants can list, search, and analyze emails, providing tools such as list_messages, get_message, search_messages, and analyze_message.
Usage The Web UI runs by default at http://0.0.0.0:8025,SMTP by default at 0.0.0.0:1025. It can be downloaded from releases, renamed to mailsandbox, and added to $PATH. Postmark API simulation and the MCP server need to be enabled via environment variables (specific variables are not yet provided in detail). In Docker, use the fork image to support MCP/Postmark features. During migration, the binary name changes to mailsandbox, and a mailpit symlink can be created; the default HTTP 8025 and SMTP 1025 ports remain unchanged; the REST API remains unchanged; Postmark and MCP are optionally enabled.
Applicable Scenarios Email functionality debugging in development and testing environments, validation of automated email workflows, Postmark integration development, and email content analysis and issue localization with the help of AI assistants.
Limitations The materials do not provide specific system requirements, a complete list of environment variables, performance boundaries, security details, or pricing information; these contents are not yet provided. This project inherits Mailpit's upstream license; see LICENSE for details.