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.
סיכום מבוסס בינה מלאכותית
Dans ce fil de discussion, vin100 cherche à modifier son mot de passe SMTP après un changement d’adresse email, et ne trouve pas où le faire dans l’interface d’administration. NateDhaliwal lui explique qu’il faut éditer le fichier app.yml via SSH avec nano, puis relancer les commandes ./launcher rebuild app et ./launcher start app pour appliquer les changements. vin100 confirme avoir compris et demande si ./launcher destroy app est nécessaire — NateDhaliwal répond que non, sauf s’il y a d’autres modifications. Ethsim2 précise que ./discourse-setup ne fonctionne pas toujours, et qu’il vaut mieux éditer app.yml directement. vin100 résume la procédure pour les débutants : sauvegarder la base, éditer app.yml, modifier DISCOURSE_SMTP_PASSWORD, puis exécuter ./launcher destroy app, ./launcher rebuild app, et ./launcher start app. Ethsim2 recommande de sauvegarder la base avant et après reconstruction. tom_eric s’inquiète du temps de reconstruction, mais NateDhaliwal confirme que seul un redémarrage est nécessaire si seul SMTP est modifié. Enfin, pfaffman souligne que discourse-setup est plus simple pour les novices, car il reconstruit automatiquement, mais que l’édition manuelle avec nano est plus rapide pour des changements ponctuels.
Hi there, all you need to do is SSH in, and just do this:
nano containers/app.yml
That will open up the text editor to change the SMTP details.
Then, you can run:
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.
Thank you very much for this fast answer.
If I run ./discourse-setup All my settings will be destroyed ?
No, I don’t believe it does. I would suggest the first option, if you have more things to edit.
.\discourse-setup will likely not work, use .\launcher rebuild app after CTRL+x in nano containers/app.yml
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.
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
Do I have to rebuild? Rebuilding is too slow ![]()
If you change only the SMTP details, you can do this:
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.