SMTP User name does not save


(kirsten greed) #1

When I re run

./discourse-setup

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


(Jeff Atwood) #2

Can you reproduce this @pfaffman?


(Jay Pfaffman) #3

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.


(Jeff Atwood) #4

Did this get fixed? Anything else to do here?


(Jay Pfaffman) #5

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.


(Christoph) #6

Same or related:


(Jay Pfaffman) #7

Here, ya go.


(Jeff Atwood) #8