I used the One-Click Install for Discourse. During install and setup of the Admin, I forgot that Gmail addresses don’t work with Discourse. What command do I use from the droplet console to update SMTP to the transactional mail service I have now?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello, @muiren
You can update the Discourse SMTP settings by running the following command in your droplet console:
This will open the Discourse setup wizard, where you can update the SMTP settings.
To update the SMTP settings, select the “SMTP” tab and enter the following information:
Once you have entered the SMTP settings, click the “Save” button.
After you have updated the SMTP settings, you need to restart the Discourse service. To do this, run the following command:
Once the Discourse service has restarted, you should be able to send and receive emails from your Discourse forum using your transactional mail service.
Note: If you are using a transactional mail service such as Amazon SES or SendGrid, you will need to generate an API key and enter it in the Discourse setup wizard.
Here is an example of how to update the Discourse SMTP settings to use Amazon SES:
Select the “SMTP” tab.
Enter the following information:
email-smtp.us-east-1.amazonaws.com
587
Your_SES_Username
Your_SES_API_Key
Click the “Save” button.
Restart the Discourse service:
Once you have completed these steps, you should be able to send and receive emails from your Discourse forum using Amazon SES.
Heya @muiren,
If you’ve installed Discourse using the one-click install and wish to update your SMTP settings after the fact, you’ll need to modify the
app.yml
configuration file and then rebuild the Discourse container.Here are the steps to update the SMTP settings:
SSH into your droplet:
Navigate to the Discourse Docker directory and edit the app.yaml:
Once in there do
Find and update the SMTP settings. They usually look something like this:
Update the above values with your transactional mail service details.
Save and exit. If you’re using
nano
, you can do this by pressingCTRL
+X
, thenY
, thenEnter
.Rebuild the Discourse container. This step applies the changes you made to the
app.yml
file.The rebuild process may take a few minutes. Once completed, your Discourse instance should now use your new transactional mail service for sending emails.
Remember, if you’re using a new SMTP service, ensure you have set up SPF and DKIM records properly for your domain to avoid email deliverability issues. Also, double-check that your mail service allows the volume of transactional emails required for your forum and that it doesn’t block or rate-limit messages coming from your Discourse instance.