Focused Tool · Apache 2.0 · Single Binary · Operations

Self-hosted email archive

Forward a copy of every email to Mailbag, search it instantly, never lose an important thread. The audit trail for your business communications, on your own server.

Install Mailbag Free Complete — all 150 tools $29/mo

Full REST API

Every operation in Mailbag is available through a JSON REST API. No SDK required — use curl, fetch, or any HTTP client.

The problem

Privacy-conscious teams often build internal emails workflows in Notion or Google Sheets because the alternative is a $200/month SaaS contract. Mailbag gives you a purpose-built tool at a fraction of the cost, running on infrastructure you already control.

How Mailbag runs

Start Mailbag with a port and a data directory. It creates its SQLite database on first run and serves both the API and the dashboard on the same port. Create emails through the web interface or POST JSON to the API. Filter by from addr, to addr, or search by keyword. Update records with PUT, delete with DELETE. The stats endpoint returns aggregate counts grouped by status for monitoring.

A freelance consultant keeps Mailbag running on a home server. Client emails stay on local disk, which simplifies the privacy section of every contract. The search endpoint powers a custom dashboard built with a static site generator. Total infrastructure cost: the electricity to run a Raspberry Pi.

Endpoints

Email archiving SaaS at $10/mo.

Self-hosted email archive. Self-hosted on your infrastructure. Your data never leaves your server.

Quickstart

Running in under a minute.

Download
curl -fsSL https://stockyard.dev/install.sh | sh -s -- --tool mailbag
Run
PORT=8750 ./mailbag
Open
http://localhost:8750

Single binary. Embedded SQLite. No Docker. No database. No dependencies.

Pricing

Free to start. Pro when you need it.

Free
$0
forever
  • 1,000 emails, 30-day retention
  • Single binary, embedded SQLite
  • Apache 2.0 — modify freely
Pro
$0.99
per month
  • Unlimited emails, unlimited retention, full-text search, export
  • License key, no cloud dependency
  • Email support

License key by email. One env var.

Your license key arrives by email within 5 minutes of checkout. Set it as an environment variable and restart the binary.

export MAILBAG_LICENSE_KEY=stockyard_xxxxxxxxxxxxxxxxxxxx
./mailbag

No cloud connectivity required. The binary validates the key offline with Ed25519 signatures.

Part of the Stockyard family — 150 focused self-hosted tools · Complete bundle $29/mo · stockyard.dev