To modify email settings in Discourse, users currently need to access the command line, as these settings are not available in the GUI. D2Rhino expressed a desire to switch to Sparkpost, but found the command line requirement challenging due to their limited Linux knowledge.
mpalmer provided a step-by-step guide to make the change:
Run cd /var/discourse
Run nano containers/app.yml to edit SMTP-related settings
Exit the editor and save changes
Run ./launcher rebuild app
Wait for the rebuild to complete
Alternatively, pfaffman suggested using ./discourse-setup to change settings, which avoids the need for manual editing with nano. However, users need to stop the app first using ./launcher stop app.
First thanks for building the only forum worth using, from a user’s perspective, anyway! Great work, beautifully designed, and I much appreciate it.
So my question is I signed up for Sparkpost and want to modify my email settings to use it rather than my personal SMTP/email provider (which isn’t working, and after reading docs on github, it looks like I can solve the issue by switching to Sparkpost). Sparkpost is all set up with domains verified, DNS records set, etc.
BUT…it doesn’t look like I can alter my forum’s email settings via GUI and must do it via command line (a big ouch)!
So, I don’t know anything about Linux command line. What do I type in to even allow me reach these settings in my digital ocean box once I’m connected as root?
Any chance everything will be GUI at some point for Discourse? It’ll be required for it to reach wider adoption…
The settings can’t be modified in the web interface, and given that they’re pretty much fire-and-forget settings, it’s unlikely they’ll be brought into the web interface any time soon.
To make the change, do the following once you’re in your droplet as root:
Run cd /var/discourse
Run nano containers/app.yml
Edit SMTP-related settings as needed
Exit out of the editor with Ctrl-X (and select ‘Y’ to save changes)