OpenTrashmail

Self-hosted disposable email inbox with web UI, API, RSS, webhooks

967 stars 76 forks last commit first released Apache-2.0

Actively maintained

Last commit 21 Oct 2026.

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:

Share:

Similar to OpenTrashmail

Hyvor Relay logo

Hyvor Relay

Open-source, self-hosted Email API for developers

918
65
Last commit

AGPL-3.0 open-source email API for developers that can be self-hosted; supports SMTP sending, webhooks, DNS automation, observability, multi-tenancy, and project isolation.

AGPL-3.0Actively maintained
Alternative to:
Amazon Simple Email Service (Amazon SES) logo
Amazon Simple Email Service (Amazon SES)
+11
DocuSeal logo

DocuSeal

Open-source platform for filling and signing documents online

18.8k
1.9k
Last commit

Self-hostable DocuSign alternative to create fillable forms and collect legally binding eSignatures with API and webhooks.

AGPL-3.0Actively maintained
Alternative to:
Docusign logo
Docusign
+13

Mox

Modern, secure, all-in-one mail server for self-hosted email

5.9k
234
Last commit

All-in-one secure mail server with SMTP, IMAP, webmail, automatic TLS (ACME), and built-in SPF/DKIM/DMARC plus junk filtering for low-maintenance domains.

MITActively maintained
Alternative to:
Microsoft Exchange Online logo
Microsoft Exchange Online
+19
WildDuck logo

WildDuck

Scalable IMAP/POP3 mail server with MongoDB backend and REST API

2.1k
286
Last commit

WildDuck is a horizontally scalable IMAP/POP3 mail server that stores all mail in MongoDB, runs stateless Node.js workers, and provides a REST API for full server control.

EUPL-1.2Actively maintained
Alternative to:
Microsoft Exchange Online logo
Microsoft Exchange Online
+13
Notifuse logo

Notifuse

Self-hosted platform for newsletters and transactional email

2.3k
241
Last commit

Open-source emailing platform for newsletters and transactional emails with a visual MJML builder, segmentation, A/B testing, analytics, and a REST API with webhooks.

Actively maintained
Alternative to:
Mailchimp logo
Mailchimp
+19
Piler logo

Piler

Open-source email archiving and eDiscovery platform

355
53
Last commit

Scalable email archiving solution with tamper-evident retention, full-text search, legal hold, deduplication and access controls for compliance.

Actively maintained
Alternative to:
MailStore Server logo
MailStore Server
+1