# SMTP設定をlocalhostを使用するように設定する方法は？

**URL:** <https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464>\
**Category:** Product Support\
**Created:** [2019 年 10 月 20 日午前 5:02 UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464 "2019-10-20T05:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mreach](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@mreach](https://meta.discourse.org/u/mreach)\
**Post date:** [2019 年 10 月 20 日午後 2:24 UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464/7 "2019-10-20T14:24:19Z")

</div>

そのような場合、パブリックIPを使用する必要がありますか、それともDockerが特別なIPスキームを使用していますか？例えば、ホスト内では`docker0`が`172.17.0.1`として表示され、コンテナ内（`./launcher enter app; apt-get install ifconfig`）では`eth0`が`172.17.0.2`となっています。Discourseコンテナ内ではホストの`172.17.0.1`を使用すべきだと推測していますが、何らかの理由でいつか変更されてしまうのは避けたいです。

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464)._
