# DISCOURSE\_SMTP\_PASSWORD change failed

**URL:** <https://meta.discourse.org/t/discourse-smtp-password-change-failed/75441>\
**Category:** Self-hosting\
**Created:** [2017 年 12 月 5 日午後 3:00 UTC](https://meta.discourse.org/t/discourse-smtp-password-change-failed/75441 "2017-12-05T15:00:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017 年 12 月 5 日午後 5:00 UTC](https://meta.discourse.org/t/discourse-smtp-password-change-failed/75441/5 "2017-12-05T17:00:13Z")

</div>

> [@zogstrip](#):
>
> Did you put quotes around your password when editing the app.yml file?

It’s a bug/limitation in `./discourse-setup`. It doesn’t properly escape passwords before asking `sed` to do the replacement.

One solution would be to check the password for a set of delimiters before doing the replacement and then choose the replacement delimiter accordingly.

Another would be to check for a slash in the password and punt, then tell them to change the password or edit `app.yml` by hand.

I’ll add this to my TODO list of improvements to discourse-setup.

> [@Pravi7434](#):
>
> No, I didn’t put any quotes around the password.I simply copied and pasted the password into the app.yml.

Oh. I was wrong.

I’ll add putting quotes around the password in `samples/standalone.yml` to my list as well. 😉 I’ve got a couple other yml updates I have been wanting to do as well.

---

_[View the full topic](https://meta.discourse.org/t/discourse-smtp-password-change-failed/75441)._
