# Please simple ways to change smtp\_password

**URL:** https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636
**Category:** Self-hosting
**Tags:** email
**Created:** [November 17, 2025, 9:03am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636 "2025-11-17T09:03:40Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![vin100](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vin100](https://meta.discourse.org/u/vin100)
#### Post date: [November 17, 2025, 9:03am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/1 "2025-11-17T09:03:41Z")

</div>

I was forced to change my email password and desperately searched for where to put the new smtp\_password in the admin panel.  
I finally understood (here) that it was necessary to go through a modification of a file (yaml?). I have SSH access, but I am not at all comfortable with it. Could someone give me a link or complete explanations so that I can manage it: the command to edit the file to modify, where to put the smtp\_password (should it be encoded?), save the file? restart Discord?  
Thanks in advance.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [November 17, 2025, 9:09am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/2 "2025-11-17T09:09:42Z")

</div>

Hi there, all you need to do is SSH in, and just do this:

```plaintext
nano containers/app.yml

```

That will open up the text editor to change the SMTP details.

Then, you can run:

```plaintext
cd /var/discourse
./launcher destroy app
./launcher start app

```

for the changes to take effect.

A simpler way would be to run `./discourse-setup` again, and fill out the details again.

---

<div class="post-metadata">

### Author: ![vin100](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vin100](https://meta.discourse.org/u/vin100)
#### Post date: [November 17, 2025, 9:12am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/3 "2025-11-17T09:12:27Z")

</div>

Thank you very much for this fast answer.

If I run `./discourse-setup All my settings will be destroyed ?`

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [November 17, 2025, 9:13am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/4 "2025-11-17T09:13:03Z")

</div>

No, I don’t believe it does. I would suggest the first option, if you have more things to edit.

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/1):
>
> The simplest way is to run `./discourse-setup` again. Did you enter everything correctly? But wait! If your password has anything other than numbers and letters, you might be better off editing your `app.yml` with `nano` or your favorite editor.
> 
> You can also double check the settings in your `containers/app.yml` file.

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [November 17, 2025, 9:13am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/5 "2025-11-17T09:13:29Z")

</div>

`.\discourse-setup` will likely not work, use `.\launcher rebuild app` after CTRL+x in `nano containers/app.yml`

---

<div class="post-metadata">

### Author: ![vin100](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vin100](https://meta.discourse.org/u/vin100)
#### Post date: [November 17, 2025, 9:49am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/6 "2025-11-17T09:49:19Z")

</div>

Thank you all for the quick replies. I’m summarizing [and updating with subsequent info] for beginners like me:

- Back up the database

- Connect via SSH

- Edit the file containing the password  
`sudo nano /var/discourse/containers/app.yml`

- Find the line containing the password  
`DISCOURSE_SMTP_PASSWORD: “your_smtp_password”`

- Enter the new password in plain text (deleting the old one)

- Save the new file: Ctrl+X, then confirm O (yes) or Y (yes), then Enter

- Rebuild (this may take time)  
`cd /var/discourse`  
`./launcher rebuild app`

- If only SMTP details were modified, you can limit yourself to

```plaintext
cd /var/discourse
./launcher destroy app
./launcher start app

```

for the changes to take effect.

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [November 17, 2025, 12:13pm UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/7 "2025-11-17T12:13:16Z")

</div>

i would recommend backing up the database before (and after) rebuild, but you probably did that before logging in via SSH

i like that you’ve included instructions for how to use the `nano` text editor

---

<div class="post-metadata">

### Author: ![tom\_eric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_eric/32/527845_2.png) [@tom\_eric](https://meta.discourse.org/u/tom_eric)
#### Post date: [November 17, 2025, 1:45pm UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/8 "2025-11-17T13:45:32Z")

</div>

Do I have to rebuild? Rebuilding is too slow 😩

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [November 17, 2025, 11:24pm UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/9 "2025-11-17T23:24:00Z")

</div>

If you change only the SMTP details, you can do this:

> [@NateDhaliwal](#):
>
> Then, you can run:
> 
> ```plaintext
> cd /var/discourse
> ./launcher destroy app
> ./launcher start app
> 
> ```
> 
> for the changes to take effect.

---

<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: [November 18, 2025, 11:07am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/10 "2025-11-18T11:07:52Z")

</div>

Running discourse-setup is the easiest way for a novice. It will do a rebuild automatically (unless you control-c before it does).

Editing with nano (or vim) and destroy/start is the fastest way, though if you have upgraded with docker\_manager from the ux it’ll undo those changes and you might need to rebuild anyway.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 18, 2025, 11:08am UTC](https://meta.discourse.org/t/resolu-please-les-modalites-simple-pour-modifier-smtp-password/388636/11 "2025-12-18T11:08:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
