# Mail script

**URL:** <https://onehack.st/t/mail-script/318230>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [February 10, 2026, 10:30am UTC](https://onehack.st/t/mail-script/318230 "2026-02-10T10:30:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Kely](https://onehack.st/user_avatar/onehack.st/jim_kely/32/168640_2.png) [@Jim\_Kely](https://onehack.st/u/Jim_Kely)\
**Post date:** [February 10, 2026, 10:30am UTC](https://onehack.st/t/mail-script/318230/1 "2026-02-10T10:30:54Z")

</div>

![script mail](https://onehack.st/uploads/default/original/3X/5/2/52141725b87ba3e5e4fc752faeb7cc2a45076928.png)

Hi

Does anyone know where I can get this email script?

---

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [February 10, 2026, 10:49am UTC](https://onehack.st/t/mail-script/318230/2 "2026-02-10T10:49:39Z")

</div>

# 📧 Self-Host Your Own Email Service — Zero Server Costs, Full Control

_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.

* * *

> **🛠️ What Cloud Mail Actually Does — Full Feature Breakdown**
>
> 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. [yourname@yourdomain.com](mailto:yourname@yourdomain.com), [support@yourdomain.com](mailto:support@yourdomain.com), [throwaway47@yourdomain.com](mailto:throwaway47@yourdomain.com) |
> | **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 |

> **⚡ Tech Stack — What Powers It Under The Hood**
>
> 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](https://resend.com) (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.

> **📦 Where To Get It — The Repo**
>
> **GitHub:** [maillab/cloud-mail](https://github.com/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 config
> - Full deployment docs with step-by-step instructions
> 
> **What you need to deploy:**
> 
> - A domain name (any registrar works — point nameservers to Cloudflare)
> - A free Cloudflare account
> - A free [Resend](https://resend.com) account (for outbound sending)
> - ~30 minutes for initial setup

> **🔀 Alternative Script — If You Want Something Different**
>
> | 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](https://github.com/dreamhunter2333/cloudflare_temp_email) |
> 
> 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.

> **⚠️ What To Know Before You Deploy**
>
> | 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 |
| --- | --- |
| 📦 Get the script | → [maillab/cloud-mail](https://github.com/maillab/cloud-mail) on GitHub |
| 🔀 Alternative (temp email focus) | → [dreamhunter2333/cloudflare\_temp\_email](https://github.com/dreamhunter2333/cloudflare_temp_email) |
| 📧 Outbound sending | → [Resend](https://resend.com) — free 100 emails/day |
| ☁ Email routing setup | → [Cloudflare Email Routing docs](https://developers.cloudflare.com/email-routing/) |

* * *

_Your domain. Your mailboxes. Your rules. Zero dollars a month._
