Rafters Mail

Rafters Mail

Rafters Mail is a full-stack email framework for Cloudflare Workers. It handles inbound and outbound email, conversation threading, blob storage, classification, and a native IMAP server -- all without a third-party inbox.

The framework is built around a set of composable adapters. You bring your own auth, your own storage, and your own routing. Mail provides the protocol layer and the data model.


Getting started

If you are new to Rafters Mail, start here. These two pages get you from zero to receiving and sending email on a real Worker.

Architecture

Understand how the framework is assembled before building on top of it.

Core

The schema, API surface, threading model, and database migration system.

Inbound and outbound

The full email processing pipeline: receiving, sending, storage, and classification.

IMAP

Native IMAP support for connecting mail clients directly to your Worker.