在 Cloudflare 上部署邮件服务
本文介绍如何使用 Cloudflare Worker 及相关服务搭建自己的邮件服务。
前提条件
使用 Cloudflare Worker 部署
Cloudflare 账户上需要有域名
本教程使用图形化部署,若需要使用 Github Action 部署,请查看官方文档:https://doc.skymail.ink/
1. 创建项目1.1 获取源代码前往 Github,给项目作者点个 Star 并 fork:https://github.com/maillab/cloud-mail
1.2 创建 Worker 项目在 Cloudflare Workers 页面,创建新项目,选择“从 Github 导入”方式。
1.3 配置路径在部署前的配置页面,向下滚动到“路径”设置,将其修改为:/mail-worker
1.4 设置环境变量(必须变量示例)
变量名
用途说明
domain
邮箱要使用的域名,多域名请用 JSON 数组格式,例如 ["example.com","example2.com&quo ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
