使用代理 Nginx 的 Discourse。站点曾正常运行(包括邮件功能),但如今邮件无法发送,且 Discourse 日志中未显示错误。在排查问题时,我发现:
======================================== \nDiscourse 2.7.0.beta1 \nDiscourse version at irusweg.de: Discourse 2.7.0.beta1 \nDiscourse version at localhost: NOT FOUND \n==================== DNS PROBLEM ==================== \nThis server reports NOT FOUND, but xxx reports Discourse 2.7.0.beta1 . \nThis suggests that you have a DNS problem or that an intermediate proxy is to blame. \nIf you are using Cloudflare, or a CDN, it may be improperly configured. \n\n```
我清楚这不是 Discourse 本身的问题,而是代理配置的问题。不过,任何提示都会很有帮助。
为了进行可靠的测试,请从 http://www.mail-tester.com/ 获取一个测试地址,或者直接向自己发送一封测试邮件。
用于邮件测试的邮箱地址?(输入 ‘n’ 跳过)[admin@xxx.de]: d@mymail.de
正在发送邮件至
正在使用 myserver:587 向 xxxxx 测试发送邮件。
= 错误 ======================================== \n 意外错误 \n \n500 5.5.1 无效命令 \n```