首次注册邮箱未收到

由于注册邮件从未到达,我通过命令行激活了管理员账户。

我使用管理员账户登录,并从“管理员/邮件设置/服务器设置”发送了一封测试邮件到 anotheruser@anotherdomain.org

如下所示,该测试邮件立即发送并成功送达我的收件箱:

root@my-vps:/var/discourse# ./launcher enter app
x86_64 arch detected.
root@my-vps-app:/var/www/discourse# rails console
Loading production environment (Rails 8.0.5)
discourse(prod)> EmailLog.all.pluck(:to_address, :email_type, :created_at, :smtp_transaction_response)
=> 
[["user@domain.org",
  "test_message",
  2026-05-13 16:23:41.417177000 UTC +00:00,
  "250 2.0.0 Ok: queued as 4B4DDB0059A"],
 ["anotheruser@anotherdomain.org",
  "test_message",
  2026-05-16 14:44:42.978862000 UTC +00:00,
  "250 2.0.0 Ok: queued as D79DFB00573"]]

随后,我尝试使用相同的邮箱地址(anotheruser@anotherdomain.org)进行注册,但注册邮件未被送达(也未发送,因为它没有出现在 Rails 控制台的日志中)。

总之,测试邮件可以正常发送并送达,但注册邮件却未被发送,尽管我们在 production.log 中找到了相关记录:

cat production.log | grep anotheruser
  Parameters: {"email_address" => "anotheruser@anotherdomain.org"}
Started GET "/u/check_email?email=anotheruser%40anotherdomain.org" for xxx.xxx.xxx.xxx at 2026-05-16 17:40:45 +0000
  Parameters: {"email" => "anotheruser@anotherdomain.org"}
  Parameters: {"email" => "anotheruser@anotherdomain.org", "password" => "[FILTERED]", "username" => "NewUser", "password_confirmation" => "[FILTERED]", "challenge" => "xxxxxxxx", "timezone" => "Europe/Paris"}

用户无法注册,请问我该如何解决?