> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amit.is-a.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailbox (Self-Hosted)

![Mailbox logo](https://mintcdn.com/notamitgamer-bsc/b1bqqPYSSQxgTMD6/images/mailbox/logo.png?fit=max\&auto=format\&n=b1bqqPYSSQxgTMD6\&q=85\&s=c9d105d064112b593dcfe857e185c4a7)

A small, self-hosted mailbox for your own domain. [Resend](https://resend.com) receives the mail, a Node.js server stores it in your own Firebase Firestore database, and an installable web app lets you read, reply, forward and send, with push notifications for new mail. Nothing is forwarded to a third-party inbox.

> [!TIP]
>
> If this project is useful to you, please [give it a star on GitHub](https://github.com/notamitgamer/mailbox) ⭐ It takes two seconds and means a lot!

## How it works

1. Someone emails one of your addresses. Resend receives it and calls your server's `/api/incoming` webhook.
2. The server verifies the webhook signature, fetches and parses the raw message, and saves it in Firestore.
3. A Web Push notification goes out to every device you have enabled notifications on.
4. You open the web app, sign in with your Google account, and read or answer the mail. Replies and new mail are sent through Resend.

## Features

* **Your data, your database**: mail lives in your Firestore, and you host the server
* **Mobile-first PWA**: installable, with an offline cache, swipe actions and pull to refresh
* **Reply, forward and compose**: from any of your own addresses, with replies threaded in the recipient's mail app
* **Push notifications**: a tap on a notification opens the message right away
* **Android app (optional)**: FCM notifications with Mark read, Delete and Reply buttons, `mailto:` links and Share to Mailbox
* **Single owner**: only one Google account can sign in, and the database is closed to everything except the server
* **Extras**: save a message as PDF, print it, share it, or open it in the Resend dashboard

## Screenshots

Shown with made-up demo mail.

![Mailbox on desktop](https://mintcdn.com/notamitgamer-bsc/b1bqqPYSSQxgTMD6/images/mailbox/desktop.png?fit=max\&auto=format\&n=b1bqqPYSSQxgTMD6\&q=85\&s=578b936c975ba948ec6fe8976256b111)

![Mailbox on a phone](https://mintcdn.com/notamitgamer-bsc/b1bqqPYSSQxgTMD6/images/mailbox/mobile.png?fit=max\&auto=format\&n=b1bqqPYSSQxgTMD6\&q=85\&s=5e882df796ae90a4ccf5058134924824)

## Get started

* [Setup](https://docs.amit.is-a.dev/mailbox/setup.md): Firebase, Resend, keys and deployment
* [Using the web app](https://docs.amit.is-a.dev/mailbox/usage.md): reading, composing, replying, forwarding
* [Push notifications](https://docs.amit.is-a.dev/mailbox/push-notifications.md): how they work and device tips
* [Android app](https://docs.amit.is-a.dev/mailbox/android-app.md): the APK, its notifications and how to build it
* [API reference](https://docs.amit.is-a.dev/mailbox/api.md): the endpoints behind the web app

## Not built yet

HTML templates and attachments on sent mail. Attachments are also not forwarded.

## License

Released under the [MIT License](https://github.com/notamitgamer/mailbox/blob/main/LICENSE). The interface is based on the MIT-licensed SmartMail template.

Copyright © 2025–2026 [Amit Dutta](https://github.com/notamitgamer)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.