I have configured items related to SMTP service in the app.yml configuration file, but I still cannot receive the activation email correctly

I have configured items related to SMTP service in the app.yml configuration file, but I still cannot receive the activation email correctly. Please provide some support.
Here are the logs I collected:
Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 30)
Delivered mail ee2b5a91-0590-48f7-8c75-aa67d5e0d6dc@bbs.lynkage.cn (30001.9ms)
Job exception: execution expired

有没有可能是 /admin/site_settings/category/required 里 notification email 没有正确设置?
/admin/email 里面“发送方式”显示的配置正确吗?

(我瞎猜的

等等,你这个域名都没有 MX 记录啊……

问题肯定出在docker的配置上,因为我有其它的服务能够正常使用我的CMTP服务器发送邮件,您提到的 /admin/site_settings/category/required我并不清楚在哪里,无法找到

Hello @liuyang,

Sorry to ask but can you please ask your question in English so the whole community can understand and help if they can?

Thanks! :wink:

3 Likes

http(s)://your_domain/admin/site_settings/category/required

http(s)://your_domain/admin/email

I am now unable to successfully log in to the forum as an administrator because I cannot receive an activation email when CREATING an administrator account

1 Like

emmm

You could try creating an admin by

cd /var/discourse
./launcher enter app

## in the container
rake admin:create
1 Like

Thanks for your help. Now I have successfully activated my administrator account through the command line, but I still cannot send emails through SMTP. I have successfully sent test emails through Telnet on the server, so I think there are some configuration items in app.yml that I am not clear about, which causes my problems

  DISCOURSE_SMTP_ADDRESS: smtp.qq.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: 1111111111111111111111111111111111@qq.com
  DISCOURSE_SMTP_PASSWORD: qq  smtp login Authorization code
  DISCOURSE_SMTP_AUTHENTICATION: login
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_ENABLE_START_TLS: true

Did you set DISCOURSE_NOTIFICATION_EMAIL in your app.yml or “notification email” in site settings?

image

3 Likes

Thank you very much. With your help, I successfully solved the problem :+1: