# Could I update the SMTP setting through discourse.config

**URL:** <https://meta.discourse.org/t/could-i-update-the-smtp-setting-through-discourse-config/27892>\
**Category:** Self-hosting\
**Created:** [Abril 24, 2015, 6:17am UTC](https://meta.discourse.org/t/could-i-update-the-smtp-setting-through-discourse-config/27892 "2015-04-24T06:17:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [Abril 24, 2015, 10:37am UTC](https://meta.discourse.org/t/could-i-update-the-smtp-setting-through-discourse-config/27892/3 "2015-04-24T10:37:04Z")

</div>

Yes, setting these options in `/config/discourse.conf` would work, e.g.

```plaintext
smtp_address = 10.0.0.1
smtp_port = 25
# etc...

```

However, this really isn’ the supported way to install Discourse. 😉

(All of these settings can also be given as environment variables to Unicorn; simply capitalize the setting’s name and add a `DISCOURSE_` prefix.)

---

_[View the full topic](https://meta.discourse.org/t/could-i-update-the-smtp-setting-through-discourse-config/27892)._
