# Minor glitch in discourse-setup

**URL:** <https://meta.discourse.org/t/minor-glitch-in-discourse-setup/77133>\
**Category:** Bug\
**Created:** [2 Gennaio 2018, 9:17pm UTC](https://meta.discourse.org/t/minor-glitch-in-discourse-setup/77133 "2018-01-02T21:17:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2 Gennaio 2018, 9:17pm UTC](https://meta.discourse.org/t/minor-glitch-in-discourse-setup/77133/1 "2018-01-02T21:17:43Z")

</div>

I noticed that when you run `./discourse-setup` again after an initial run, it seems to remember the values entered during the previous run (i.e. email addresses, smtp password etc). But it does not remember the SMTP user name, worse even, it remembers it wrongly.

It neither suggests the value that is actually in the app.yml nor does it resort to the default value (`postmaster@discourse.example.com`). Instead it seems to construct the suggested address by combining `postmaster@` with the forum’s domain (I think).

If your mail domain and your forum domain are the same, there is no problem. But it’s not uncommon to use a specific mail domain for mailgun & co, e.g. `mail.mydomain.com`. The correct SMTP username in that case is `postmaster@mail.mydomain.com` (and that is what it says in the app.yml file. But the setup will use `postmaster@mydomain.com` if your forum is at `mydomain.com`. (Not sure if it will use `postmaster@forum.mydomain.com` if the forum is at `forum.mydomain.com`, but either way it would be wrong.)

---

_[View the full topic](https://meta.discourse.org/t/minor-glitch-in-discourse-setup/77133)._
