Mail script

Hi

Does anyone know where I can get this email script?

1 Like

:e_mail: 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. [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
⚑ 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 (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 β€” 4.3k+ :star: | 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 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+ :star: 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.

⚠️ 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

:high_voltage: Quick Hits

Want Do
:package: Get the script β†’ maillab/cloud-mail on GitHub
:shuffle_tracks_button: Alternative (temp email focus) β†’ dreamhunter2333/cloudflare_temp_email
:e_mail: Outbound sending β†’ Resend β€” free 100 emails/day
:cloud: Email routing setup β†’ Cloudflare Email Routing docs

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

9 Likes