# Yandex smtp 邮件发送失败

**URL:** <https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627>\
**Category:** Self-hosting\
**Created:** [2020年十二月30日 18:25 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627 "2020-12-30T18:25:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![onecame](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/onecame/32/203732_2.png) [@onecame](https://meta.discourse.org/u/onecame)\
**Post date:** [2020年十二月30日 18:25 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627/1 "2020-12-30T18:25:25Z")

</div>

DISCOURSE\_SMTP\_ADDRESS: smtp.yandex.com.tr  
DISCOURSE\_SMTP\_PORT: 587  
DISCOURSE\_SMTP\_USER\_NAME: admin@form.gelcoz.tk  
DISCOURSE\_SMTP\_PASSWORD: “pass”  
DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true # （可选，默认为 true）

我已进行了这些调整，但邮件仍未发送。  
错误：553 5.7.1 发件人地址被拒绝：不属于已认证用户。

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2020年十二月30日 19:30 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627/2 "2020-12-30T19:30:29Z")

</div>

我在尝试解决此问题时，发现了一封来自 Yandex 的旧邮件，或许对您有所帮助。

* * *

发送信件时出现“发件人地址被拒绝：非用户所有”错误，表明尝试使用他人或其他邮箱地址发送邮件。此类错误通常发生在以下两种情况：

- 邮件使用同一域名下的另一个邮箱地址作为发件人。
- 邮件使用不同域名下的另一个邮箱地址作为发件人。

请注意：该错误信息会显示进行授权的邮箱地址，以及被指定为发件人的邮箱地址：

```plaintext
(5.7.1 <admin@example.com>: Sender address rejected: not owned by user mail@example.com)

```

- `admin@example.com`：进行授权的邮箱地址。
- `mail@example.com`：被指定为发件人的邮箱地址。

* * *

我的解决方案是：在所有地方统一使用同一个电子邮件地址。该邮箱已在 Yandex Connect 上注册。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2020年十二月30日 19:36 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627/3 "2020-12-30T19:36:09Z")

</div>

您是否已配置 Yandex 从 `noreply@form.gelcoz.tk` 发送邮件？

---

<div class="post-metadata">

**Author:** ![onecame](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/onecame/32/203732_2.png) [@onecame](https://meta.discourse.org/u/onecame)\
**Post date:** [2020年十二月30日 20:03 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627/4 "2020-12-30T20:03:23Z")

</div>

我想不行，我怎么能呢？

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2020年十二月30日 20:26 UTC](https://meta.discourse.org/t/yandex-smtp-mail-not-send/174627/5 "2020-12-30T20:26:30Z")

</div>

您可以咨询 Yandex 如何配置其邮件服务器。

或者，如果您知道发件地址，可以按照 `app.yml` 末尾的说明修改 `notification_email`（或者既然您似乎已登录，也可以在 Web 界面中进行设置）。
