# DiscourseのSMTPがドメインの代わりに「EHLO localhost」を送信し、Google smtp-relayが機能しなくなります

**URL:** <https://meta.discourse.org/t/discourse-smtp-sends-ehlo-localhost-instead-of-domain-breaking-google-smtp-relay/176755>\
**Category:** Bug\
**Created:** [2021 年 1 月 20 日午後 11:49 UTC](https://meta.discourse.org/t/discourse-smtp-sends-ehlo-localhost-instead-of-domain-breaking-google-smtp-relay/176755 "2021-01-20T23:49:13Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Syonyk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/syonyk/32/206551_2.png) [@Syonyk](https://meta.discourse.org/u/Syonyk)\
**Post date:** [2021 年 1 月 23 日午前 1:56 UTC](https://meta.discourse.org/t/discourse-smtp-sends-ehlo-localhost-instead-of-domain-breaking-google-smtp-relay/176755/21 "2021-01-23T01:56:42Z")

</div>

@iwaffles -

このスレッドおよび関連する他のスレッドに記載されている解決手順を試しましたか？

app.yml に以下の行を追加してください。

```plaintext
DISCOURSE_SMTP_DOMAIN: [your server's fqdn]

```

その後、/var/discourse 内で ./launcher rebuild app を実行してください。

discourse-doctor が引き続き失敗を報告する可能性はありますが、管理コンソール内からのテストメールは機能し、通常のメールフローが再開されるはずです。

それでも動作しない場合は、ご報告ください。まだ見つかっていない別の要因がある可能性があります。

---

_[View the full topic](https://meta.discourse.org/t/discourse-smtp-sends-ehlo-localhost-instead-of-domain-breaking-google-smtp-relay/176755)._
