Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

MailTub

github.com

  • Windows
  • macOS
  • Linux
  • Web
  • iPhone and iPad
  • Android
  • API
  • Self-hosted
7.2 Club score Visit github.com

What MailTub is

MailTub is a self-hosted disposable email service for creating temporary inboxes. New messages appear through WebSocket updates instead of repeated polling, and a session can hold up to five inboxes with expiration choices of 1 hour, 6 hours, 24 hours, or 7 days. Users can export inboxes as an .eml ZIP or structured JSON, and the service parses MIME attachments with configurable size caps. MailTub runs as a Go binary with SQLite and an embedded React interface, or through Docker. Its web interface offers dark, light, and system themes and can be installed as a progressive web app on mobile and desktop. The project also provides a REST API, SMTP receiving, a scriptable CLI, and a Prometheus-compatible metrics endpoint. Mailbox creation is limited to 20 per IP per hour. Receiving real email requires a domain with an MX record pointing to the server, port 25 access or redirection, and a matching MAILTUB_DOMAIN setting. The project identifies its license as Apache 2.0.

Who it suits

MailTub suits people or teams who want to host temporary inboxes themselves and can configure the requirements for receiving real email. Its API, CLI, and metrics endpoint also suit users who want programmatic access or monitoring.

Good to know, and what to watch

  • Inbox updates use WebSocket push
  • Offers four mailbox expiry choices
  • Supports .eml ZIP and JSON exports
  • Deploys as a Go binary or with Docker
  • A session is limited to five inboxes
  • Mailbox creation is capped at 20 per IP per hour
  • Real email requires an MX record and port 25 access

The verdict

MailTub combines temporary inboxes with self-hosted deployment, exports, and developer-facing interfaces. Check the inbox cap and real-email setup requirements before choosing it.

What the maker publishes

API access
The API is open by default unless an API key is configured; the health endpoint remains public. source
API and CLI
MailTub provides a REST API and a scriptable CLI for creating, listing, reading, watching, and sending mail. source
Attachments
MailTub parses MIME attachments and supports configurable per-attachment and total attachment size caps. source
Deployment
MailTub runs as a single Go binary with SQLite and an embedded React interface, and also provides Docker deployment. source
Email size limits
Defaults include a 25 MiB SMTP message limit, a 25 MiB per-attachment cap, and a 50 MiB total attachment cap per email. source
Exports
Users can download an inbox as an .eml ZIP or structured JSON. source
Inbox limits
A session can have up to five simultaneous inboxes, with mailbox expiry choices of 1 hour, 6 hours, 24 hours, or 7 days. source
Integrations
It provides a REST API, SMTP receiving, WebSocket updates, and a Prometheus-compatible metrics endpoint. source
License
The repository identifies the project as Apache 2.0 licensed. source
Mailbox limits
A session can have up to five simultaneous inboxes, with expiry options of 1 hour, 6 hours, 24 hours, or 7 days. source
Optional caching
Mailbox caching can optionally use a Redis or Upstash URL. source
Purpose
MailTub is a self-hosted disposable email service that creates temporary inboxes. source
Rate limit
Mailbox creation is limited to 20 per IP per hour. source
Rate limiting
MailTub limits mailbox creation to 20 per IP per hour. source
Real-time email
New emails appear through WebSocket push, which the project says delivers them in milliseconds without polling. source
Real-time inboxes
New emails appear through WebSocket push, without polling. source
Receiving mail requirements
Receiving real email requires a domain with an MX record pointing to the server, port 25 access or redirection, and a matching MAILTUB_DOMAIN setting. source
Security
The admin panel stores its password as a bcrypt hash and uses HMAC-SHA256 signed session cookies with a 24-hour lifetime. source
Support
The project asks users to report security vulnerabilities to [email protected]. source
Support and security contact
The project asks users to report vulnerabilities to [email protected]. source
User interface
The web interface supports dark, light, or system themes, and can be installed as a progressive web app on mobile and desktop. source

Checked against the maker's pages on 30 Sept 2026.