Please simple ways to change smtp_password

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

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

for the changes to take effect.

1 Like