cfw-mailbox

cfw-mailbox

Webmail that runs on your own Cloudflare account

Description

Wanting your own domain email without handing it to Gmail — and without paying to rent a mail service — has always been awkward. cfw-mailbox moves a whole webmail app into your own Cloudflare account: it receives with Email Routing and sends with Email Service, each mailbox is a SQLite-backed Durable Object, raw messages and attachments live in R2, and your mail flows entirely inside your own account, through no third party.

The interface is the Gmail layout you already know: a threaded inbox with stars, labels, archive and read/unread, all undoable. It is multi-domain and multi-user by design — an admin adds domains, creates mailboxes and grants access at /admin, and each person switches between the mailboxes they can open as an owner, a member, or a read-only viewer.

Features



Hosted on your own account: receive via Email Routing and send via Email Service, with mailbox data in a SQLite Durable Object and attachments in R2; a one-click Deploy to Cloudflare button sets it up, with no external mail provider.

Gmail-style compose: rich text, attachments, auto-saved drafts, a signature, undo send and schedule send, with Gmail search operators, snooze, filters, a vacation responder and keyboard shortcuts.

Spam that handles itself: mail that fails authentication, and mail from senders you block, goes to Spam with a warning banner — judged by authentication rather than blacklists or body scanning — and Trash and Spam empty themselves after 30 days.

Many domains, many roles: one deployment manages several domains and role addresses, with per-mailbox owner, member and read-only access; sign-in is gated by Cloudflare Access and the Worker verifies every request's Access token itself.

Install it as an app: installable as a PWA with new-mail notifications and offline reading, plus swipe actions on phones; the address book imports and exports vCards, and any mailbox can be downloaded as mbox.

AI and MCP built in: an optional AI Assistant (bring your own key) summarises mail, drafts replies, rewrites and answers questions about your inbox, and a /mcp endpoint lets Claude Code, Cursor and other MCP clients read, search, draft and send mail directly.