Everything you need to own your email infrastructure
From multi-domain two-way webmail to developer HTTP APIs, campaign broadcasts, and programmable AI agent mailboxes — all hosted on your own Cloudflare edge.
Product
Mailboxes, sending and receiving, broadcasts, the API, webhooks, agents and access.
Multi-Domain Mailboxes
Manage all your domains, brands, and mailboxes from a single self-hosted app. Unify communication with total data ownership.
Send & Receive
It's a real mailbox, not just an outbound API. Receive, read, reply, and forward — keep every customer conversation organized in one place.
Broadcasts
Send marketing campaigns, sales email, newsletters, and product announcements, with the unsubscribe and suppression tools that compliant bulk email needs built in.
Email API
A small, versioned HTTP API for sending, listing, reading, replying, forwarding, and transferring attachments — hosted on your deployment.
AI Agents
Let agents send and receive email over a clean, predictable HTTP API — ideal for automated workflows, tool use, and human-in-the-loop email.
Team & Permissions
Invite teammates and control exactly which domains and mailboxes each can access. Clear roles, clean boundaries — no guesswork.
Email to Webhook
Every email sent to an address on your domain becomes a signed JSON POST to your endpoint: parsed sender, subject, text, HTML, headers and attachments, with no server and no polling.
Use cases
Newsletters, private email, and a mailbox for each AI agent.
Design each issue in a visual editor, import your list, and send from your own domain through your own Cloudflare account, with one-click unsubscribe and a suppression list built in.
Read moreMarkRelay runs team email inside your own Cloudflare account: your messages, attachments and contacts stay in your own database and storage, no email vendor keeps a copy of your mailbox, and there is no mail server to run or patch.
Read moreMarkRelay Broadcasts sends your newsletter from your own domain and your own Cloudflare account with no open-tracking pixel and no rewritten links unless you turn them on for a broadcast.
Read moreCreate a mailbox for the agent on your own domain and give it an API key that can reach only that mailbox — instead of an OAuth grant to your entire Gmail account.
Read moreCreate agent@yourdomain.com in your own Cloudflare account, give OpenClaw a key that reaches only that mailbox, and install the MarkRelay skill. OpenClaw can then read, search, send and reply from that address, and nothing else.
Read moreCreate agent@yourdomain.com in your own Cloudflare account, give Claude Code a key that reaches only that mailbox, and install the MarkRelay skill. Claude Code can then read, search, send and reply from that address, and nothing else.
Read moreCreate agent@yourdomain.com in your own Cloudflare account, give Codex a key that reaches only that mailbox, and install the MarkRelay skill. Codex can then read, search, send and reply from that address, and nothing else.
Read moreCreate agent@yourdomain.com in your own Cloudflare account, give Hermes Agent a key that reaches only that mailbox, and install the MarkRelay skill. Hermes Agent can then read, search, send and reply from that address, and nothing else.
Read moreCreate agent@yourdomain.com in your own Cloudflare account, give Pi a key that reaches only that mailbox, and install the MarkRelay skill. Pi can then read, search, send and reply from that address, and nothing else.
Read moreCompare MarkRelay
How it stacks up against hosted email services and other ways to run email on Cloudflare.
Cloudflare Email Routing receives and Email Sending sends, but neither gives you an inbox. These open-source projects and MarkRelay do, inside your own Cloudflare account.
Read the comparisonIf you pay for Workspace mostly to get email on your own domains, MarkRelay gives every domain, shared inbox and teammate a mailbox under one flat license, in your own Cloudflare account.
Read the comparisonDeployed into your own Cloudflare account with no VPS: send, receive, reply and forward over HTTP, get a signed webhook for every inbound message, and open the same mailboxes in webmail.
Read the comparisonAgentMail is a hosted inbox API priced by inboxes and email volume. MarkRelay gives agents mailboxes on your own domain, inside your own Cloudflare account, for one license.
Read the comparisonBoth run in your own Cloudflare account. agentic-inbox is a free single-trust-boundary inbox with a built-in AI assistant; MarkRelay adds per-mailbox access, scoped keys, webhooks, broadcasts and support.
Read the comparisonSend newsletters and campaigns from your own domain on Cloudflare, for a flat license plus Cloudflare's per-email price, with your list in your own database.
Read the comparisonSelf-hosted newsletters and campaigns on Cloudflare Workers, D1 and R2, with sending through Cloudflare Email Sending and replies in a real inbox.
Read the comparisonOne HTTP API to send and receive from your own domain, signed webhooks for inbound mail, a web inbox for your team and broadcasts built in, deployed in your own Cloudflare account.
Read the comparisonCloudflare Email Routing receives your mail, MarkRelay stores it and posts each message to your app as an HMAC-signed inbound webhook, and replies go out from the same address.
Read the comparisonSend your newsletter from your own domain and your own Cloudflare account, keep the whole list, and pay no share of revenue. Your website and payments stay with the tools you already use.
Read the comparisonbeehiiv prices by list size. MarkRelay is one license plus Cloudflare's per-email price, and every issue goes out from your own domain and your own Cloudflare account.
Read the comparison100% Self-Hosted on Cloudflare Edge
Your Worker compute, D1 SQLite database, R2 storage bucket, and Email Routing bindings belong directly to your account. No per-seat subscriptions, no data lock-in.
Ready to deploy your email stack?
Annual, Lifetime with every future update, or Source with the full code.