Daviz, who installed Discourse on DigitalOcean using Mailgun’s free SMTP service, encountered issues with email delivery and sought to replace the SMTP server. Stephen and pfaffman advised editing the /var/discourse/containers/app.yml file or rerunning ./discourse-setup to reconfigure SMTP settings. Daviz, unfamiliar with command-line tools like nano, requested guidance on editing the file and identifying which settings to change. pfaffman reiterated that running ./discourse-setup is the simplest approach, guiding users step-by-step through configuration. Canapin noted that Mailgun is typically reliable if configured correctly and suggested consulting the Marketplace if further help is needed. After researching nano, Daviz successfully reran ./discourse-setup and reconfigured SMTP, resolving the issue. merefield clarified that no SMTP server is “installed” — settings are merely configured. The discussion emphasizes using ./discourse-setup over manual app.yml edits for beginners.
hi.
I installed the open source discourse on digitalOcean hosting server. The smtp server used Mailgun Free ver.
The mailgun Free ver. smtp installed on discourse is not sending mail, so I want to change the smtp server.
How can I replace the smtp server installed in discourse?
But I don’t know the programming language very well.
I know it’s a hassle, but if you could tell me how to edit the app.yml file and the path to access the file, I’d appreciate it.
Thank you for your interest. I haven’t tried it yet. I haven’t found any smtp servers that can replace Mailgun, I’ll have to look around a bit more.
Hi.
I accessed the containers.yml with the command you gave me below.
cd /var/disourse
nano containers/app.yml
After that, I need to edit it to change the SMTP server, but I don’t know how to edit file. If it’s not too much trouble, please let me know how to do it.
I googled how to use the nano command. I got a rough idea of how to use the command. However, I don’t know which commands to modify in app.yml and how.
I’m afraid that explaining how to use software that has nothing to do with Discourse is usually out of the scope of this forum. If you have trouble and a budget, you can post in Marketplace.
That said, I agree with pfaffman, likely Mailgun wasn’t properly configured (many people use it for Discourse with no troubles) or app.yml wasn’t properly filled in. I’d look at both, and as for changing SMTP settings, as pfaffman said a few times, you can also run ./discourse-setup, which will lead to the software’s configuration step by step.