SMTP User name does not save

When I re run

./discourse-setup

the SMTP email becomes postmaster@discourse.mydomain.com
even though I previously entered myuser@mydomain.com

1 Like

Can you reproduce this @pfaffman?

1 Like

Oh! @kgreed is correct! Apparently the “user the default mailgun username” code overrides the “use the pre-existing settings” code. I’m guessing that few people change their mailgun username, so this is an edge case.

Now that I think about it, the code that loads the defaults happens before the “oh! It’s mailgun, I know what to do” code. I’ll have a look and see if this is easy to fix.

4 Likes

Did this get fixed? Anything else to do here?

It’s on my list,which has quite a few things on it now. I think that this one affects few people. It’s annoying, because you have to re-enter the value rather than have your old value used. It’s not quite a bug, because it does work.

I’ll try to submit a PR this week.

3 Likes

Same or related:

1 Like

Here, ya go.

https://github.com/discourse/discourse_docker/pull/391

3 Likes