Net::SMTPServerBusy 异常

我正在尝试从 /admin/backups 下载网站备份,但无法收到下载电子邮件。在检查 production.log 后,我发现了以下输出:

Started PUT "/admin/backups/xxx.tar.gz" for 203.18.50.6 at 2023-05-08 05:34:50 +0000
Processing by Admin::BackupsController#email as */*
  Parameters: {"id"=>"xxx.tar.gz"}
start
  Rendered text template (Duration: 0.0ms | Allocations: 1)
Completed 200 OK in 658ms (Views: 3.7ms | ActiveRecord: 0.0ms | Allocations: 11718)
  Rendered layouts/email_template.html.erb (Duration: 2.6ms | Allocations: 36)
Job exception: Net::SMTPServerBusy

fail

此外,还有一些与 SMTP 相关的类似错误,如下所示:

start
  Rendered user_notifications/digest.html.erb within layouts/email_template (Duration: 26.5ms | Allocations: 3067)
  Rendered layout layouts/email_template.html.erb (Duration: 35.6ms | Allocations: 3335)
  Rendered user_notifications/digest.text.erb (Duration: 19.6ms | Allocations: 2594)
Job exception: Net::SMTPServerBusy

Job exception: unexpected return

fail

该网站是从另一个旧网站迁移过来的,并且有很多用户的电子邮件格式为:
909471255bcde5900c628c6@email.invalid

有人能给我一些关于问题原因以及如何解决的线索吗?

您的 SMTP 服务器有问题。您需要修复它。

这些用户的电子邮件地址无效(可能为空),因此导入脚本创建了一个伪造的地址。您对此无能为力。

事实证明,这与我的 SMTP 服务器有关。在通过 ./discourse-doctor 验证并解决了 SMTP 错误后,我现在可以发送电子邮件,并且那些排队的电子邮件也已发送。

感谢您一直以来的帮助 @pfaffman

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.