I’m stuck creating the administrator account and cannot receive the email!!!
Is your SMTP configuration correct? After modifying the configuration again, run ./launcher rebuild app
I use QQ Mail, and all configurations are correct.
@tom How do I check the SMTP sending logs for Discourse when I cannot access the admin backend?
@tom How do I check the SMTP sending logs for Discourse when I cannot access the admin backend?
@tom_plus How do I check the SMTP sending logs for Discourse when I can’t access the admin backend?
要查看Discourse的SMTP发信日志,即使无法进入后台,你可以通过以下步骤操作:
-
进入服务器:首先,你需要通过SSH进入你的Discourse服务器。
-
查看日志文件:Discourse的邮件日志通常保存在
/var/discourse/shared/standalone/log/rails/production.log文件中。你可以使用以下命令查看日志:tail -f /var/discourse/shared/standalone/log/rails/production.log这条命令会实时显示日志文件的最新内容。
-
检查邮件日志:在日志文件中查找与SMTP相关的条目。你可以使用
grep命令来过滤出相关信息,例如:grep "SMTP" /var/discourse/shared/standalone/log/rails/production.log -
重建应用:如果你确认SMTP配置正确,但仍然无法收到邮件,可以尝试重建Discourse应用。运行以下命令:
cd /var/discourse ./launcher rebuild app
通过这些步骤,你应该能够查看SMTP发信日志并诊断邮件发送问题。如果问题仍然存在,建议检查QQ邮箱的SMTP设置是否正确,并确保你的服务器没有被防火墙或其他安全设置阻止发送邮件。