Cloud Mail: A Cloudflare-Native Email Server with Workers, D1, and R2
Cloud Mail is a Cloudflare-based email service that combines Workers, routing, storage, and a web mailbox.
At a glance
- What is it?
- Cloud Mail is a self-hosted email service built entirely on Cloudflare Workers, combining routing, storage, and a web mailbox. It offers a low-cost alternative to traditional email servers, but its reliance on Cloudflare's ecosystem and third-party services like Resend shapes its trade-offs.
- Who is it for?
- Cloud Mail suits developers already invested in Cloudflare who want a low-cost, self-hosted mailbox with a web UI and API access. It is not for teams needing on-premises control or avoiding third-party email sending via Cloudflare Email or Resend.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 2 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 13, 2026, and from our analysis. They are not legal advice.
Star history
- maillab/cloud-mail15,680 ★ · +2,732
| Repository | 2026-07-28 | 2026-11-13 |
|---|---|---|
| maillab/cloud-mail | 12.9k | 15.7k |
2,732 Stars in the last 108 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What Cloud Mail Actually Solves
Cloud Mail addresses the cost and complexity of running a personal or small-scale email service. Traditional email servers require a VPS, mail transfer agent configuration, DNS records, and ongoing maintenance. Cloud Mail instead runs on Cloudflare Workers, which are serverless functions that scale to zero when idle. The README states that you only need a domain to create multiple mailboxes, similar to major email platforms. This makes it attractive for individuals or small teams who want their own email addresses without paying for dedicated server infrastructure. The target user is someone already comfortable with Cloudflare's ecosystem, not a sysadmin looking for a full-featured groupware suite. It is a webmail interface plus an API, not a replacement for Outlook or Gmail in a large organization.
Architecture: Workers, Hono, Drizzle, and the Data Layer
Cloud Mail is a monorepo with a single worker backend called mail-worker. The backend is built on Hono, a lightweight web framework for Workers, and uses Drizzle as the ORM to interact with Cloudflare D1, a serverless SQLite database. The directory structure shows a layered design: API routes, data access objects, email processing, security, and services. The README describes received mail as forwardable to a Telegram bot or another provider's mailbox, and attachments as stored in R2. The API layer exposes endpoints for user management and mail queries, and the security module handles authentication and RBAC.
Getting It Running: Commands and Configuration
The README does not include explicit installation commands, which is a notable omission for a deployment-focused project. It links to a separate deployment document at docs.skymail.ink. The stack it names is Cloudflare Workers with D1 for the database, KV for cache and R2 for file storage, and the mail-worker source has an init folder for database and cache initialization.
Limitations and Failure Modes
The most obvious limitation is that sending goes through hosted services: the README names Cloudflare Email and Resend for outbound mail. You are not fully self-sufficient; a core function relies on a provider's API.
Alternatives: Traditional Mail Servers and Other Cloudflare Projects
The most direct alternative is a traditional self-hosted mail server like Mail-in-a-Box or Mailcow. These projects provide a full email stack with SMTP, IMAP, webmail, and administrative tools. They run on a VPS and give you complete control over sending and receiving. The key difference is that Mail-in-a-Box uses Postfix and Dovecot, which are proven open-source components, and it does not rely on third-party APIs for sending. The trade-off is higher resource usage, a static IP requirement, and more maintenance. If you need IMAP support or want to avoid external dependencies, Mail-in-a-Box is a better fit.
Maintenance, License, and Upgrade Considerations
The project is licensed under MIT, which is permissive and allows commercial use, modification, and redistribution. There are no copyleft restrictions, so you can integrate it into proprietary software. The README does not mention any contributor guidelines or governance structure, so maintenance is likely driven by the core team. The repository is not archived, and the last push was on 2026-10-25, indicating active development. However, the README does not include a changelog or a migration guide for upgrades. The latest releases are v3.2.0, v3.3.0 and v3.4.0 (2026-10-23). You should check the release notes on GitHub before upgrading.
Editorial conclusion
Cloud Mail suits developers already invested in Cloudflare who want a low-cost, self-hosted mailbox with a web UI and API access. It is not for teams needing on-premises control or avoiding third-party email sending via Cloudflare Email or Resend. Before adopting, verify your Cloudflare plan's limits for Workers, D1, R2, and KV, and confirm that your sending service, Cloudflare Email or Resend, covers your sending volume. Also, review the deployment docs at docs.skymail.ink for the exact deployment steps, as the README omits them. If you need a more traditional SMTP server or a standalone mail stack, look elsewhere; Cloud Mail is inseparable from the Cloudflare platform.
Frequently asked questions
What is cloud mail?
Cloud Mail is a Cloudflare Workers based email service that combines routing, storage and a web mailbox, letting one domain host several mailboxes. It is JavaScript, MIT licensed, built with Hono, Drizzle, Vue3 and Element Plus, and stores mail in D1, attachments in R2 and cache in KV.
Is cloud mail free?
The README does not give a price list. It states the cost argument instead, that the project can be deployed to Cloudflare Workers to lower server costs and let you build your own mail service. Sending goes through Cloudflare Email or Resend, and a live demo runs at skymail.ink.
what is cloud mail app
It is a responsive web mailbox whose layout adapts to PC and most mobile browsers, with attachment sending and receiving, group sending through Cloudflare Email and Resend, data visualization through ECharts, and personalization of the site title, login background and opacity.
is cloud mail ru safe
The README says nothing about that domain. What it does state is that the project is MIT licensed and that registration is protected by Turnstile to prevent automated bulk registration, while an open API supports batch user creation and multi condition mail queries without describing how that API is authorized.
Official sources
Was this useful?