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

**URL:** <https://meta.discourse.org/t/discourse-doctor-error-503-auth-command-used-when-not-advertised-but-email-works-fine-from-admin-cp/137302>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2019 年12 月 29 日 14:25 UTC](https://meta.discourse.org/t/discourse-doctor-error-503-auth-command-used-when-not-advertised-but-email-works-fine-from-admin-cp/137302 "2019-12-29T14:25:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
发布日期： [2019 年12 月 29 日 14:25 UTC](https://meta.discourse.org/t/discourse-doctor-error-503-auth-command-used-when-not-advertised-but-email-works-fine-from-admin-cp/137302/1 "2019-12-29T14:25:18Z")

</div>

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

你好，

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

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

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

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

> 503 AUTH 命令在未广告时使用

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

以下是 app.yml 中的设置：

> DISCOURSE\_SMTP\_ADDRESS: [mail.mydomain.com](http://mail.mydomain.com)  
> DISCOURSE\_SMTP\_PORT: 587  
> DISCOURSE\_SMTP\_USER\_NAME: [discourse@mydomain.com](mailto:discourse@mydomain.com)  
> DISCOURSE\_SMTP\_PASSWORD: topsecretpassword  
> DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true  
> DISCOURSE\_SMTP\_OPENSSL\_VERIFY\_MODE: none

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

---

_[View the full topic](https://meta.discourse.org/t/discourse-doctor-error-503-auth-command-used-when-not-advertised-but-email-works-fine-from-admin-cp/137302)._
