我已在 Ubuntu 上不使用 Docker 安装了 Discourse 服务器版本 2.7.0。
系统运行正常,但当用户通过电子邮件注册时,服务器会显示消息:“您快完成了!我们已向您提供的邮箱发送了激活邮件。”
但用户并未收到任何邮件。
测试邮件功能正常。
我的 SMTP 配置如下:
smtp_address = "smtp.gmail.com"
smtp_port = 587
smtp_domain = sampledomain.in
smtp_user_name = "mymail@gmail.com"
smtp_password = "*********"
smtp_authentication = login
notification_email = noreply@sampledomain.in
smtp_enable_start_tls = true
有什么线索可以帮助解决此问题,以便用户能够收到激活邮件吗?
我使用非 Docker 方式安装了 Discourse,并参考了以下链接进行安装:
一切运行正常,我使用 Gmail SMTP 发送邮件。测试邮件发送正常。
但当用户尝试通过邮箱注册时,激活邮件并未发送给该用户。
有什么线索可以解决此问题吗?
此外,非 Docker 安装的 Discourse 日志位置是否与 Docker 安装相同?
还是非 Docker 安装的 Discourse 日志路径有所不同?
我已经就此提出了一个查询:
i installed discourse server version 2.7.0 in ubuntu without docker
it works fine , when users make registration by their email id
the server gives the message " You’re almost done! we sent activation mail to email provided
but no mail is received to users .
The test mail is working fine
my smtp config is
smtp_address = "smtp.gmail.com"
smtp_port = 587
smtp_domain = sampledomain.in
smtp_user_name = "mymail@gmail.com"
smtp_password = "*********"
smtp_authentication = login
notification_ema…
jomaxro
(Joshua Rosenfeld)
2021 年7 月 2 日 18:06
3
@tkdhanasekar ,我已将您的相关主题合并。请勿创建重复主题,未来的重复主题将被删除。
此外请注意,此处仅支持官方安装方式。对于其他安装方式(例如不使用 Docker 的安装),支持将非常有限甚至完全不提供。
Stephen
(Stephen)
2021 年7 月 2 日 20:44
5
Gmail 不是受支持的邮件提供商。邮件可能在 Google 端被拦截的原因有很多,我的建议是 使用受支持的提供商之一 。
我遇到了完全相同或非常相似的问题。
作为管理员,我可以向外部和真实地址发送测试电子邮件,但当我尝试使用该地址(或任何地址)注册时……什么也没发生。
我对邮件服务器有控制权,并且查看了它的日志——无论是用户注册还是管理员重新发送激活电子邮件——似乎都没有尝试与邮件服务器通信或连接。
不调试 Discourse 日志:
Started POST "/u/action/send_activation_email" for 10.3.9.144 at 2023-08-29 18:34:14 +0000 Processing by UsersController#send_activation_email as */* Parameters: {"username"=>"lemko"} Rendered text template (Duration: 0.0ms | Allocations: 1) Completed 200 OK in 39ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 2848)
我是新手,所以问的时候请对我温柔点——这不是因为我没有 sidekiq ,对吧?
嗯……看来 Sidekiq 绝对是必需的(而且可能还有很多其他用途??)