Hi
Does anyone know where I can get this email script?
The email script behind bjedu.tech, telemail.cc, and dozens of other instances β open-source, serverless, and yours to deploy.
The script is called Cloud Mail β and it runs entirely on Cloudflareβs free tier.
Think of it as spinning up your own Gmail, except you own the domain, the data, and the infrastructure. One domain, unlimited mailboxes, zero monthly hosting bills. The backend runs on Cloudflare Workers, emails store in D1, attachments land in R2 β all serverless, all free-tier eligible.
Not a toy project. This is a production-grade email platform with 4.3k+ GitHub stars and active development.
| Feature | What It Means For You |
|---|---|
| Send + Receive | Full email send/receive via Resend integration β group send, inline images, attachments, delivery status tracking |
| Custom Domains | One domain = unlimited unique mailboxes. [email protected], [email protected], [email protected] |
| Attachments | Send and receive file attachments β stored in Cloudflare R2 object storage |
| Admin Dashboard | RBAC-based access control β manage users, emails, permissions, resource limits |
| Email Forwarding | Auto-forward incoming mail to Telegram bot or another email provider |
| Open API | Batch-create users, query emails programmatically β automation-friendly |
| OAuth2 Login | GitHub, LinuxDo, Authentik β plug in your preferred auth provider |
| Turnstile CAPTCHA | Built-in bot protection to prevent mass registration abuse |
| Data Visualization | ECharts dashboard showing system stats, user growth, email volume |
| Customization | Change site title, login background, UI transparency β brand it however you want |
| Multi-Language | i18n support out of the box |
Everything runs on Cloudflareβs ecosystem. No VPS, no Docker, no monthly bills.
| Component | Service | Cost |
|---|---|---|
| Backend | Cloudflare Workers (Hono framework) | Free tier |
| Database | Cloudflare D1 (SQLite at the edge) | Free tier |
| File Storage | Cloudflare R2 (S3-compatible) | Free tier (10GB) |
| Frontend | Cloudflare Pages (Vue 3) | Free tier |
| Email Sending | Resend (outbound SMTP) | Free tier (100 emails/day) |
| CAPTCHA | Cloudflare Turnstile | Free |
| DNS + Routing | Cloudflare Email Routing | Free |
Total monthly cost for a personal instance: $0. Cloudflareβs free tiers cover everything unless youβre processing thousands of emails daily.
GitHub: maillab/cloud-mail β 4.3k+
| JavaScript + Vue 3 | actively maintained
The repo includes:
mail-worker/ β Backend (Cloudflare Workers + Hono)mail-vue/ β Frontend (Vue 3 SPA)wrangler.toml β Cloudflare deployment configWhat you need to deploy:
| Project | Stars | Focus | Link |
|---|---|---|---|
| dreamhunter2333/cloudflare_temp_email | 5.7k+ |
Temp/disposable email β IMAP/SMTP proxy, Rust WASM parser, Telegram bot, AI email extraction | GitHub |
This one is more focused on temporary/disposable addresses with extras like IMAP proxy support and AI-powered verification code extraction. Cloud Mail is more of a βbuild your own email platformβ β dreamhunter2333βs project is more βspin up throwaway inboxes fast.β
Both run on Cloudflareβs free tier. Both are open-source. Pick whichever fits your use case.
| Reality Check | Details |
|---|---|
| Resend free tier = 100 emails/day | Fine for personal use. If you need volume, paid plans start at $20/mo |
| Cloudflare D1 limits | Free tier: 5M rows read/day, 100k rows written/day β more than enough for personal/small community use |
| Email deliverability | New domains start with zero reputation. Set up SPF, DKIM, DMARC properly or your outbound mail lands in spam |
| Not a replacement for Gmail | This is a self-hosted utility β great for custom domains, throwaway addresses, and privacy. Not designed as a daily-driver primary inbox |
| Public instances get abused | Sites like bjedu.tech get used for disposable signups β services catch on and block their domains. Self-hosting your own domain avoids this |
Quick Hits
| Want | Do |
|---|---|
| β maillab/cloud-mail on GitHub | |
| β dreamhunter2333/cloudflare_temp_email | |
| β Resend β free 100 emails/day | |
| β Cloudflare Email Routing docs |
Your domain. Your mailboxes. Your rules. Zero dollars a month.