Fortmail

•

Aggregate, triage, read, and send emails across Gmail and IMAP accounts through a serverless Cloudflare Worker and Model Context Protocol interface.

Fortmail is a lightweight, zero-dependency email management system deployed as a single Cloudflare Worker that equips AI agents with a complete email interface. It connects to Gmail via OAuth and any IMAP/SMTP provider over raw TLS sockets, storing and sealing credentials with AES-GCM encryption. Fortmail uses fast, deterministic regex filtering to classify incoming mail without relying on internal LLMs or external AI API calls. Through its built-in Model Context Protocol (MCP) server, external agents can list accounts, review triaged desks, inspect messages and attachments, and dispatch emails, complete with a self-hosted newsletter engine and agent waking triggers.

주요 기능

01Unified Mailbox Management: Connects multiple Gmail and IMAP/SMTP accounts directly via API and raw TLS sockets without external intermediaries.
02Deterministic Regex Triage: Automatically categorizes incoming mail into desk, record, and ignore states without LLM dependencies or API fees.
03Built-in MCP Server: Exposes tools for listing accounts, triaging messages, fetching attachments, and sending emails directly to AI agents.
04Zero-Trust Credential Sealing: Mints and seals unique mailbox credentials with AES-GCM encryption entirely within worker key-value storage.
05Integrated Newsletter Engine: Manages subscriber lists, double opt-in confirmations, RFC 8058 unsubscriptions, and queued campaigns via relay webhooks.
060 GitHub stars

사용 사례

01Autonomous Inbox Triage: Allow AI assistants to filter out spam, summarize incoming mail, and prioritize critical communications across multiple inboxes.
02Agentic Task Dispatch: Trigger autonomous workflows or GitHub pull requests when receiving verified instructions from trusted senders.
03Self-Hosted Email Campaigns: Send transactional emails or manage multi-brand newsletter distribution lists securely at minimal infrastructure cost.