# How to set SMTP config to use localhost?

**URL:** https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464
**Category:** Support
**Created:** [October 20, 2019, 5:02am 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:** 8

<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: [October 20, 2019, 7:51pm UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464/8 "2019-10-20T19:51:03Z")

</div>

Just to document here, the following was sufficient (all other SMTP lines commented out) to deliver to the docker host’s smtp server if no auth is necessary:

```plaintext
  DISCOURSE_SMTP_ADDRESS: 172.17.0.1
  DISCOURSE_SMTP_PORT: 25

```

---

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