DISCOURSE_SMTP_AUTHENTICATION没有文档?都不行

我在论坛上看到,可以将 DISCOURSE_SMTP_AUTHENTICATION 设置为 none,这样 smtp 就不会提供用户名和密码。

DISCOURSE_SMTP_AUTHENTICATION: none

但是当我将其设置为 none 并尝试 discourse-doctor 时,我收到:

======================================== ERROR ========================================
                                    UNEXPECTED ERROR

Invalid authentication method. Must be plain, login, or cram_md5.

====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!

Please report the exact error message above to https://meta.discourse.org/
(And a solution, if you find one!)

当我尝试登录时,我收到:

postfix-email-server-1  | 2025-04-25T05:48:22.788077+00:00 INFO    postfix/smtpd[3330]: connect from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T05:48:22.794598+00:00 INFO    postfix/smtpd[3330]: lost connection after AUTH from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T05:48:22.794735+00:00 INFO    postfix/smtpd[3330]: disconnect from unknown[172.17.0.1] ehlo=2 starttls=1 auth=0/1 commands=3/4
postfix-email-server-1  | 2025-04-25T06:00:09.568494+00:00 INFO    postfix/smtpd[3340]: connect from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:00:09.576873+00:00 INFO    postfix/smtpd[3340]: lost connection after AUTH from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:00:09.576989+00:00 INFO    postfix/smtpd[3340]: disconnect from unknown[172.17.0.1] ehlo=2 starttls=1 auth=0/1 commands=3/4
postfix-email-server-1  | 2025-04-25T06:06:44.547155+00:00 INFO    postfix/smtpd[3330]: connect from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:06:44.561004+00:00 INFO    postfix/smtpd[3330]: lost connection after AUTH from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:06:44.561158+00:00 INFO    postfix/smtpd[3330]: disconnect from unknown[172.17.0.1] ehlo=2 starttls=1 auth=0/1 commands=3/4
postfix-email-server-1  | 2025-04-25T06:07:20.702285+00:00 INFO    postfix/smtpd[3340]: connect from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:07:20.712755+00:00 INFO    postfix/smtpd[3340]: lost connection after AUTH from unknown[172.17.0.1]
postfix-email-server-1  | 2025-04-25T06:07:20.712960+00:00 INFO    postfix/smtpd[3340]: disconnect from unknown[172.17.0.1] ehlo=2 starttls=1 auth=0/1 commands=3/4
postfix-email-server-1  | 2025-04-25T06:07:57.695045+00:00 INFO    rsyslogd: -- MARK --

销毁并重建也没有帮助。
我在 Discourse 之外测试了我的邮件发送器,它可以正常工作。我使用的是 bokysan/docker-postfix,它不需要登录,我对它很满意。
我知道另一个相关的帖子,但 none 选项在那里似乎是一个有效的选项:

我已经通过注释掉 containers/app.yml 中的以下行来修复它

    #DISCOURSE_SMTP_USER_NAME: user@example.com
    #DISCOURSE_SMTP_PASSWORD: pa$$word
2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.