上级 项目
type
status
date
slug
summary
password
子级 项目
tags
category

Cloud Mail

Serverless 响应式邮箱服务,支持邮件发送,可部署到Cloudflare平台 🎉

项目地址:https://github.com/maillab/cloud-mail

项目简介

只需要一个域名,就可以创建多个不同的邮箱,类似各大邮箱平台,本项目可部署到 Cloudflare Workers ,降低服务器成本,搭建自己的邮箱服务。

功能介绍

  • 💰 低成本使用: 部署到 Cloudflare Workers 降低服务器成本
  • 💻 响应式设计:响应式布局自动适配PC和大部分手机端浏览器
  • 📧 邮件发送:集成Resend发送邮件,支持群发,内嵌图片和附件发送,发送状态查看
  • 🛡️ 管理员功能:可以对用户,邮件进行管理,RABC权限控制对功能及使用资源限制
  • 📦 附件收发:支持收发附件,使用R2对象存储保存和下载文件
  • 🔔 邮件推送:接收邮件后可以转发到TG机器人或其他服务商邮箱
  • 📡 开放API:支持使用API批量生成用户,多条件查询邮件
  • 📈 数据可视化:使用Echarts对系统数据详情,用户邮件增长可视化显示
  • 🎨 个性化设置:可以自定义网站标题,登录背景,透明度
  • 🤖 人机验证:集成Turnstile人机验证,防止人机批量注册
  • 📜 更多功能:正在开发中...

项目展示

notion image
notion image
notion image
notion image

小白保姆教程-界面部署

WARNING
首先你要注册一个域名,如果你要拿来注册一些网站或者游戏比如steam不要用 top xyz 这种廉价域名有可能会网站被当临时邮箱拦截

一、绑定域名

注册账号登录到cloudflare 控制台,开始绑定域名(如果你已经绑定好了可以直接跳到第二步)
notion image
notion image
选择免费的计划。
notion image
notion image
设置dns。
notion image
不同的厂商的修改dns都差不多,这里以华为云为例。
notion image
设置完成后可能要等几分钟,期间可以刷新浏览器看有没有完成。
notion image
完成后的界面。
notion image
这样子账户主页就会显示你的域名了,域名绑定完成。
notion image

二、创建worker项目

到项目仓库fork项目代码到你的仓库:https://github.com/maillab/cloud-mail
notion image
notion image
这样子仓库就会复制到你那边了。
notion image
回到cloudflare控制台,找到workers页面导入你的github仓库代码。
notion image
notion image
notion image
设置启动目录。
notion image
等待构建部署完成。
notion image
构建完成后的页面。
notion image
这时候项目就会出现在worker列表了,点击名字进入可以查看和设置。
notion image

三、设置环境变量

服务还需要设置一些环境变量和绑定数据库才能正常运行。
notion image
添加以下变量,注意domain是json类型的,管理员账号之后需要你在注册页面注册
notion image
notion image
设置完成自定义域名和环境变量的样子。
notion image

四、绑定数据库

找到左侧菜单存储和数据库,创建kv数据库,数据库名字随意。
notion image
创建d1数据库,数据库名字随意 位置选择离你近的地方。
notion image
回到worker设置界面绑定刚刚创建的数据库 D1数据库 变量名为 dbKV数据库 变量名为 kv
notion image
浏览器输入https://你的自定义域名/api/init/你绑定的的jwt_secret 会自动初始化数据库(如果之前部署过只会更新不会覆盖原有数据)
notion image
浏览器输入你绑定的自定义域名网站已经能打开了,注册登录了。
notion image

五、启用邮件接收

设置完成后才能接收邮件了。
回到cloudflare控制台,点击菜单账户主页,再点你的域名。
notion image
菜单栏会发生变化。
notion image
notion image
notion image
启用电子邮件。
notion image
notion image
设置转发到worker。
notion image
notion image
设置完成的样子。
notion image
测试接收邮件。
notion image

六、附件收发

设置完这一步后才能接收附件和发送附件,如果你不需要可以跳过。
回到上一级菜单,找到r2对象存储,创建存储桶。
notion image
桶名字可以随便填 位置选择离你近的地方。
notion image
设置自定义域名。
notion image
notion image
自定义域名添加到项目设置里面。
notion image
回到worker绑定刚才创建的r2存储桶。
r2存储桶 变量名为 r2
notion image

七、邮件发送

使用第三方服务resend发送邮件。
浏览器输入resend.com注册。
notion image
添加域名。
notion image
notion image
notion image
如果未出现登录Cloudflare添加按钮,就需要你手动到Cloudflare解析记录那里,添加新的解析记录。
notion image
等待验证完成。
notion image
验证完成后的样子。
notion image
创建apiKey
notion image
notion image
notion image
回到项目网站设置。
notion image
设置邮件状态回调接口。
notion image
notion image
notion image

八、人机验证

设置这一步后可以开启人机验证,防止网站被机器人批量注册。
菜单栏找到 turnstile
notion image
notion image
添加你的域名。
notion image
名字随意。
notion image
复制这两个密钥。
notion image
回到项目设置页面设置密钥。
notion image

九、TG和其他邮箱转发

在TG搜索找到这个机器人。
notion image
创建机器人并且获取token
notion image
给机器人一条发消息。
notion image
浏览器输入 https://api.telegram.org/bot你的机器TOKEN/getUpdates 获取chat_id 如果获取不到就再给机器人发几条消息。
notion image
设置 tokenchat_id
notion image
转发到其他服务商邮箱,在cloudflare验证邮箱。
notion image
设置邮箱。
notion image
教程完结。
1panel面板安装步骤Workers版moments开箱即用,记录美好瞬间
Loading...