qi_lu
(qi lu)
2026 年1 月 3 日 13:24
1
我最初遵守的安装教程:
Linux+宝塔+Docker+Discourse 零基础快速搭建论坛网站,Discourse是国外最受欢迎的开源论坛程序。--------------------教程文章:https://blog.zeruns.com/archives/919.html演示站:https://bbs.eeclub.top/--------------------雨云优惠注册地址:https://rain.zer, 视频播放量 6437、弹幕量 9、点赞数 31、投硬币枚数 5、收藏人数 63、转发人数 1,...
我的设置:
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邮箱,否则我不得不尝试更换邮箱。
Moin
2026 年1 月 3 日 14:46
2
1 个赞
qi_lu
(qi lu)
2026 年1 月 4 日 02:19
3
感谢回复,你提供的两个案例与我的情况几乎一样,我仔细查看了相关内容,但还是搞不清楚如何解决。
logs确实存在错误。
ducks
2026 年1 月 5 日 16:55
4
你好,抱歉出现这种情况。我正在努力修复此问题以提供实际的错误消息。合并后我会在此回复。
1 个赞
ducks
2026 年1 月 7 日 16:40
6
你好,PR 已经合并。在您获取到更新后的代码后,请告诉我您是否仍然没有看到人类可读的错误消息。
qi_lu
(qi lu)
2026 年1 月 8 日 04:06
7
这是我运行doctor的记录
https://mathcollapse.20000816.xyz/ZWM4MzAzZjUzZDZjMGU1.txt
这是更新后的错误日志
Message (2 copies reported)
SMTP Error Net::SMTPUnknownError with message:
response:
Backtrace
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-8.0.4/lib/active_support/broadcast_logger.rb:218:in `block in dispatch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-8.0.4/lib/active_support/broadcast_logger.rb:217:in `map'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-8.0.4/lib/active_support/broadcast_logger.rb:217:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-8.0.4/lib/active_support/broadcast_logger.rb:129:in `error'
/var/www/discourse/lib/email/sender.rb:308:in `rescue in send'
/var/www/discourse/lib/email/sender.rb:295:in `send'
/var/www/discourse/lib/tasks/emails.rake:230:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:279:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:279:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:279:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/task.rb:188:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:188:in `invoke_task'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:138:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:138:in `block in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:147:in `run_with_threads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:132:in `top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:83:in `block in run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:214:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.1/lib/rake/application.rb:80:in `run'
bin/rake:13:in `<top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli/exec.rb:59:in `load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli/exec.rb:59:in `kernel_load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli.rb:452:in `exec'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/vendor/thor/lib/thor.rb:538:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli.rb:35:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/cli.rb:29:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/exe/bundle:28:in `block in <top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.6.4/exe/bundle:20:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
感谢您的帮助,但是目前我仍然无法解决qq邮箱问题,所以不得不更换为gmail邮箱,目前已经完全正常。
qq邮箱不行,我也出现同样问题,用mailgun能解决问题