feat: 增强多域名邮箱管理、Catch-all 与按域名发件配置 - #136
Open
huzheyi wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本次更新主要完善 MoeMail 在多域名部署场景下的邮箱接收、发件权限、用户域名权限和邮件管理能力,同时优化邮箱页面的使用体验与查询开销。
主要改动
1. 按域名配置 Catch-all 邮箱
email表,避免随机地址攻击导致 D1 数据膨胀。message.to。SITE_CONFIGKV binding。2. 按域名配置 Resend 发件服务
3. Catch-all 自定义发件地址
4. 用户可用域名权限
5. 邮箱和邮件列表优化
6. 增量刷新与查询优化
7. 修复收到邮件时发件人显示错误
原收件 Worker 将 Cloudflare Email Worker 的
message.from直接保存为发件人地址。该字段实际是 SMTP 信封发件人(Envelope From / Return-Path)。经 Resend 发送时,它可能是类似以下格式的退信地址: