[GH-ISSUE #621] [BUG] 创建地址失败: Invalid domain #235

Closed
opened 2026-02-26 20:36:17 +03:00 by kerem · 3 comments
Owner

Originally created by @dnslin on GitHub (Apr 5, 2025).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/621

复现步骤

tg bot 发送 /new xxx@xxxx.xxx

预期行为

创建地址失败: Invalid domain

{
  "fetched": true,
  "info": {
    "url": "https://xxx.workers.dev/telegram/webhook",
    "has_custom_certificate": false,
    "pending_update_count": 0,
    "last_error_date": 1741641888,
    "last_error_message": "Wrong response from the webhook: 500 Internal Server Error",
    "max_connections": 40,
    "ip_address": "104.21.85.xxx"
  },
  "commands": [
    {
      "command": "start",
      "description": "开始使用"
    },
    {
      "command": "new",
      "description": "新建邮箱地址, 如果要自定义邮箱地址, 请输入 /new <name>@<domain>, name [a-z0-9] 有效"
    },
    {
      "command": "address",
      "description": "查看邮箱地址列表"
    },
    {
      "command": "bind",
      "description": "绑定邮箱地址, 请输入 /bind <邮箱地址凭证>"
    },
    {
      "command": "unbind",
      "description": "解绑邮箱地址, 请输入 /unbind <邮箱地址>"
    },
    {
      "command": "delete",
      "description": "删除邮箱地址, 请输入 /delete <邮箱地址>"
    },
    {
      "command": "mails",
      "description": "查看邮件, 请输入 /mails <邮箱地址>, 不输入地址默认查看第一个地址"
    },
    {
      "command": "cleaninvalidadress",
      "description": "清理无效地址, 请输入 /cleaninvalidadress"
    }
  ]
}

部署方式

  • cli 部署
  • 用户界面部署

浏览器环境

chrome latest

Originally created by @dnslin on GitHub (Apr 5, 2025). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/621 ## 复现步骤 tg bot 发送 /new xxx@xxxx.xxx ## 预期行为 创建地址失败: Invalid domain ```json { "fetched": true, "info": { "url": "https://xxx.workers.dev/telegram/webhook", "has_custom_certificate": false, "pending_update_count": 0, "last_error_date": 1741641888, "last_error_message": "Wrong response from the webhook: 500 Internal Server Error", "max_connections": 40, "ip_address": "104.21.85.xxx" }, "commands": [ { "command": "start", "description": "开始使用" }, { "command": "new", "description": "新建邮箱地址, 如果要自定义邮箱地址, 请输入 /new <name>@<domain>, name [a-z0-9] 有效" }, { "command": "address", "description": "查看邮箱地址列表" }, { "command": "bind", "description": "绑定邮箱地址, 请输入 /bind <邮箱地址凭证>" }, { "command": "unbind", "description": "解绑邮箱地址, 请输入 /unbind <邮箱地址>" }, { "command": "delete", "description": "删除邮箱地址, 请输入 /delete <邮箱地址>" }, { "command": "mails", "description": "查看邮件, 请输入 /mails <邮箱地址>, 不输入地址默认查看第一个地址" }, { "command": "cleaninvalidadress", "description": "清理无效地址, 请输入 /cleaninvalidadress" } ] } ``` ## 部署方式 - [ ] cli 部署 - [x] 用户界面部署 ## 浏览器环境 chrome latest
kerem 2026-02-26 20:36:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 7, 2025):

感谢反馈,Invalid domain 是 @后面的域名不在 worker 配置中

<!-- gh-comment-id:2782923879 --> @dreamhunter2333 commented on GitHub (Apr 7, 2025): 感谢反馈,Invalid domain 是 @后面的域名不在 worker 配置中
Author
Owner

@dnslin commented on GitHub (Apr 8, 2025):

感谢反馈,Invalid domain 是 @后面的域名不在 worker 配置中

这个问题我找到原因了 因为在0.8.x 版本的时候 我提过一个issue ,当时我反馈的问题是为了防止滥用 只有注册用户才可以创建 邮箱,所以我用了临时解决方法 置空了 DEFAULT_DOMAINS

<!-- gh-comment-id:2784908523 --> @dnslin commented on GitHub (Apr 8, 2025): > 感谢反馈,Invalid domain 是 @后面的域名不在 worker 配置中 这个问题我找到原因了 因为在0.8.x 版本的时候 我提过一个issue ,当时我反馈的问题是为了防止滥用 只有注册用户才可以创建 邮箱,所以我用了临时解决方法 置空了 DEFAULT_DOMAINS
Author
Owner

@dnslin commented on GitHub (Apr 8, 2025):

现在 我加上了 DISABLE_ANONYMOUS_USER_CREATE_EMAIL 把 DEFAULT_DOMAINS 恢复就没问题了

<!-- gh-comment-id:2784909222 --> @dnslin commented on GitHub (Apr 8, 2025): 现在 我加上了 DISABLE_ANONYMOUS_USER_CREATE_EMAIL 把 DEFAULT_DOMAINS 恢复就没问题了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#235
No description provided.