更改正常运行的论坛中的SMTP设置

Hello, just a quick question. It’s possible to edit SMTP email options on a working forum?
Rebuild command will wipe all forum content (threads, posts, users, design)? in the case that I edit app.yml

Thanks.

2 个赞

Rebuild will not destroy any forum content as that’s stored in a persistent database file. It will stop/rebuild/start the app container, however, so your site will be down during the rebuild time.

4 个赞

Thank you @justin, if I decide to use Mailgun is the SMTP configuration similar to in Sendinblue?
In Sendinblue had to register, confirm. Go to Transactional emails, you see SMTP details like server, port, user and password. Used that information in Discourse installation and everything worked fine.

Or there’s additional configuration within Mailgun? Like configuring DNS/MX records?
Thanks.

1 个赞

This howto gives a general understanding of the MailGun setup process. While it may not be the same for using Digital Ocean as a DNS provider, the general steps are very similar.

3 个赞

in containers/app.yml you can change these settings. Then ./launcher rebuild app

5 个赞

您需要转到克隆 Official Discourse Docker 镜像的目录。

如果您遵循了指南 并在克隆存储库时输入了建议的目录 /var/discourse

git clone https://github.com/discourse/discourse_docker.git /var/discourse

那么您需要转到 /var/discourse 来运行 rebuild app 命令。否则,请转到您选择的其他目录。

cd 是更改当前目录的命令。

要运行 rebuild app 命令(如果它位于 /var/discourse 目录中),请键入:

cd /var/discourse
./launcher rebuild app

或者,如果您使用的是其他目录,请键入:

cd <您选择的目录>
./launcher rebuild app

在更改 app.yml 中的 SMTP 详细信息后,无需重新构建。

./launcher destroy app && ./launcher start app

即可。

3 个赞

我不明白为什么这不是管理员设置。SMTP 设置并非一成不变,可能会随着时间而改变。

4 个赞

这是正确的吗?

非常感谢,你说得对,你帮了我大忙。

根据我对 Discourse 的了解,这一定有一个非常真实且合理的理由 :smiley:

有人知道是什么理由吗? :thinking: