配置QQ邮箱发件,邮件正常到达,但是Discourse报错,会重复发送

我最初遵守的安装教程:

我的设置:

  DISCOURSE_DEVELOPER_EMAILS: 'xxx@gmail.com'

  ## TODO: Configure the mail server
  ##       (used for validation of new accounts, notifications, digests, etc.)
  ## required: hostname of the SMTP mail server used to send mail
  DISCOURSE_SMTP_ADDRESS: smtp.qq.com
  ## uncomment to set the port to something other than the default (25)
  DISCOURSE_SMTP_PORT: 587
  ## USER_NAME / PASSWORD required if the SMTP provider needs authentication
  ## WARNING: a '#' in the SMTP password can be misinterpreted; ensure it's inside string quotes, e.g.:
  ##   DISCOURSE_SMTP_PASSWORD: "#pass#ord"
  DISCOURSE_SMTP_USER_NAME: xxx@qq.com
  DISCOURSE_SMTP_PASSWORD: "xxx"
  ## uncomment to enable implicit TLS at connection time, probably needed for using port 465
  #DISCOURSE_SMTP_FORCE_TLS: true
  ## uncomment to set the HELO/EHLO domain, only set if required by provider
  #DISCOURSE_SMTP_DOMAIN: discourse.example.com
  ## the address from which notifications are sent
  DISCOURSE_NOTIFICATION_EMAIL: xxx@qq.com
  ## uncomment to change server certificate verification
  #DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: peer # peer|none
  ## uncomment to override the authentication method
  DISCOURSE_SMTP_AUTHENTICATION: login # plain|login|cram_md5

情况1:

尝试用户注册时,Discourse会反复发送邮件。


我不得不在sidekiq中手动终止重试任务

情况2:

我尝试使用内部测试邮件
点击发送后,提示错误。
但是,当我打开邮箱,发现邮件成功到达。

如果有人可以帮我解决这个难题,我将继续使用QQ邮箱,否则我不得不尝试更换邮箱。

yourforum.com/logs 中有错误吗?

您的问题让我想起了 我搭建了discourse,激活了账户邮箱,为什么还是每隔一会儿不断发送激活账户信息的邮件??怎么配置解决这个bug - #23 by supermathieDuplicate registration email issue

1 个赞

感谢回复,你提供的两个案例与我的情况几乎一样,我仔细查看了相关内容,但还是搞不清楚如何解决。

logs确实存在错误。


你好,抱歉出现这种情况。我正在努力修复此问题以提供实际的错误消息。合并后我会在此回复。

1 个赞