Disable all users email notifications?

Hi.
I’ve imported a phpbb forum to Discourse.
I’ve also imported some other messages and it seems that all the imported users are receiving activity emails from the Discourse forum, which I don’t want since I’m still heavily working on my forum and it isn’t opened to public yet.

So I need to disable all email notifications for the users as soon as possible. How can I achieve this?

There is a site setting to disable all email. The importers usually set this for you, or they should anyway.

Para cualquiera que necesite hacer esto.. Acabo de tener que cambiar esto para una versión antigua de un sitio que solo tuvo un cambio de DNS. Solo accesible a través de SSH.

Los pasos para hacer esto son iniciar sesión en el servidor mediante SSH.

cd /var/discourse
sudo ./launcher enter app

si tu contenedor tiene un nombre diferente, reemplaza app con el nombre del contenedor

rails c
SiteSetting.disable_email="yes"

Encontré la configuración del sitio usando la función de autocompletado con la tecla Tab después de escribir disable.. Puede ser útil que otros lo sepan.