Discourse-doctor 错误 503:AUTH 命令在未通告时使用 - 但管理员控制面板中的邮件功能正常

编辑:看来问题仅存在于 discourse-doctor 中,因此已修改标题。

你好,

我正在尝试弄清楚如何让邮件功能正常工作,以便 Discourse 能够发送邮件以授权用户……我已经成功安装了 Discourse,但现在当我尝试让它发送邮件(例如请求新密码)时,发现邮件功能无法使用。

我已经花了两天时间进行故障排查,但想不出其他可以尝试的方法。

  • 我使用 VPS 服务器上现有的邮件主机(mydomain.com)。
  • 我在那里为 Discourse 创建了一个新的电子邮件账户(discourse@mydomain.com)。
  • Discourse 安装在 DigitalOcean 的 Droplet 上,该 Droplet 已设置为我主域名的子域名(discourse.mydomain.com)。

当我使用 discourse-doctor 尝试发送邮件时,会出现以下错误:

503 AUTH 命令在未广告时使用

这是什么意思?我需要更改什么?

以下是 app.yml 中的设置:

DISCOURSE_SMTP_ADDRESS: mail.mydomain.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: discourse@mydomain.com
DISCOURSE_SMTP_PASSWORD: topsecretpassword
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none

希望有人能对此提供一些见解,我将永远感激不尽。

1 个赞

well it seems I can be eternally grateful for myself…

This seems to be an issue ONLY in the discourse doctor!

because when I out of sheer frustration clicked on “send a testmail” from the Admin CP, lo and behold, to my surprise IT WAS SENT!

So it DOES work, only discourse doctor does it make seem it doesn’t…

and since I was using that to check my settings everytime (and not the sending mail from admin CP), I kept thinking something was wrong!

I don’t know whether this can be fixed somehow but maybe it’s possible to do something in discourse doctor that prevents that error from showing? or adds the message to the user that they should check from the admin CP as well? It will save other folks hopefully the headaches I have had about this ;p

sigh of relief.

thank you

2 个赞

You don’t go to the doctor if you’re not sick. :wink:

We can fix it if we know when the 503 response happens and what it means. I can have a look and see if it should treat that as some kind of warning that should be ignored.

Can you confirm that it still gives you that error on your working configuration? If so, I’ll send you some more commands to try.

Thanks

3 个赞

hi Jay, thank for your reply.
I agree that discourse-doctor is not used for a healthy patient :slight_smile:

OK I tried again as per your request, and still the same error. And this is on a working discourse forum WITH working email (it mails users just fine).

Sending mail to [my email address]
Testing sending to [my email address] using [discourse mail address]:[password]@[mailserver]
======================================== ERROR ========================================
                                    UNEXPECTED ERROR

503 AUTH command used when not advertised


====================================== 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!)
================================================================================
1 个赞

Hmm. Thanks. I’ll have a look and see if it can treat that condition as a warning.

2 个赞