-
Notifications
You must be signed in to change notification settings - Fork 1
Home
github-actions[bot] edited this page Jul 7, 2026
·
4 revisions
Welcome to the official documentation for Mailbox, a modern, production-ready, self-hosted email client and management platform built on Next.js 16 and Prisma 7.
Mailbox sits between your DNS provider (Cloudflare) and your team. It handles incoming email streams by automatically configuring mailboxes, routing rules, and Cloudflare Worker webhook processors on your domain β allowing your team to view and interact with incoming mail inside a beautiful, real-time dashboard.
| Page | Description |
|---|---|
| Getting Started | Install, configure, and run the app locally |
| Architecture | 4-layer code architecture and system design |
| Database Setup | SQLite, PostgreSQL, MySQL, and serverless options |
| Cloudflare Setup | Connect your domain for inbound email routing |
| Cloudflare Worker Internals | How the MIME-to-HTTP bridge works inside the Worker |
| SMTP & Sending | Configure outbound email, job queue flow, and API providers |
| Users & Access | Roles, permissions, invite flow, and security policies |
| API Reference | All REST endpoints with auth models and request/response shapes |
| Deployment | Deploy to Vercel or self-host with Docker |
| Troubleshooting | Common issues and fixes across all areas |
External Sender β Cloudflare Email Routing β Cloudflare Worker
β Mailbox Webhook (/api/emails/incoming)
β Prisma β Database
β React Query β Dashboard UI
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, React 19) |
| ORM | Prisma 7 |
| Database | SQLite / PostgreSQL / MySQL / Neon / Supabase |
| UI | Tailwind CSS v4, Hugeicons React |
| State / Cache | Tanstack React Query v5 |
| Auth | Custom cookie-based sessions, bcryptjs |
| i18n | next-intl (English & Spanish) |
| Email Routing | Cloudflare Email Routing + Workers |
This project is licensed under the Business Source License 1.1 (BUSL-1.1).
Free for personal and non-commercial use. Commercial use requires a paid license.
Contact prashantnigam490@gmail.com for commercial inquiries.