您好,
我使用的是官方安装方法,但在安装后收不到邮件。
在我的 VPS 上,我测试了
echo Hello world > /tmp/mail.txt
curl -v smtps://smtppro.zoho.com:465 \
--mail-from $email \
--mail-rcpt $(echo $email | cut -d ',' -f 1) \
--user $email:"$pass" \
--upload-file /tmp/mail.txt
我通过 curl 方法从我的 VPS 收到邮件,所以我的服务器正在发送邮件。
这是我的 app.yml 配置
DISCOURSE_SMTP_ADDRESS: smtppro.zoho.com
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: $username
DISCOURSE_SMTP_PASSWORD: $pass
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
DISCOURSE_SMTP_ENABLE_SSL: true
DISCOURSE_SMTP_DOMAIN: domain # (required by some providers)
我甚至在 smtp 测试工具上测试了我的凭据,并且它们工作正常。
这是 discourse 的日志:
tail shared/standalone/log/rails/production.log
Job exception: end of file reached
fail
start
done
start
Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 36)
Job exception: end of file reached
fail
有什么线索吗?
提前感谢,
Azamat