OpenTrashmail
Self-hosted disposable email inbox with web UI, API, RSS, webhooks
OpenTrashmail is an open source, standalone “trashmail” service that includes its own SMTP server for receiving email on your domains without pre-creating mailboxes. Messages can be viewed in a web interface or consumed programmatically via JSON, RSS, and webhooks.
Key Features
- Built-in SMTP server (Python-powered) that accepts mail for configured domains
- Web UI to browse messages, view HTML/text bodies, and manage inboxes
- JSON API for listing messages, retrieving full message details, and deleting mail/accounts
- Per-address RSS feeds for reading emails in RSS clients
- Webhooks (global and per-address) with customizable JSON payloads
- Attachment handling with download support and configurable size limits
- TLS support for SMTP via STARTTLS and TLS-on-connect
- File-based storage (no database required)
- Optional access controls: shared password, allowed IP ranges, and admin view
Use Cases
- Disposable inboxes for signups, testing, and avoiding spam on primary accounts
- Automation workflows that need to ingest emails (e.g., parsing verification or 2FA emails)
- Email honeypot/catch-all style collection for diagnostics and monitoring
Limitations and Considerations
- Not a full mail platform (no IMAP/POP3 mailboxes); focused on receiving and consuming messages via UI/API/RSS
- Running an SMTP listener typically requires careful network and DNS setup and may be impacted by ISP/cloud provider port restrictions
OpenTrashmail is well-suited for homelabs and development environments that need quick, disposable inboxes and machine-friendly access to received emails. Its file-based design and multiple consumption methods make it practical for both manual inspection and automated integrations.
Categories:
Tags:
Tech Stack:
Similar Services

docker-mailserver
Containerized mail server stack for SMTP and IMAP with anti-spam
Production-ready mail server stack in a Docker container with SMTP, IMAP/POP3, LDAP auth, anti-spam/AV, DKIM/DMARC, and optional OAuth2 support.

Postal
Open source mail delivery platform for inbound and outbound email
Postal is an open source mail delivery platform for sending and receiving email, with SMTP support, web-based management, and tools for running your own SendGrid-style se...


Mail-in-a-Box
Turnkey email server with webmail, DNS, TLS, and admin panel
Mail-in-a-Box is a one-click mail server appliance for Ubuntu, bundling SMTP/IMAP, webmail, DNS, TLS automation, backups, and an admin control panel.

mailcow: dockerized
Docker-based email server suite with a web admin interface
Mailcow is a dockerized mail server suite providing SMTP/IMAP, webmail, anti-spam/anti-virus, and domain/mailbox administration via a unified web UI.

Stalwart Mail Server
All-in-one mail and collaboration server for modern and legacy protocols
All-in-one open-source mail and collaboration server with SMTP, IMAP, JMAP, CalDAV, CardDAV, and WebDAV, plus integrated anti-spam and phishing protection.

Mailu
Docker-based mail server with webmail and admin interface
Mailu is a full-featured mail server distributed as Docker images, providing SMTP/IMAP/POP3, webmail, administration UI, and built-in security and anti-spam features.
Docker
Python
PHP