DemocracyOS / democracyos

Democracia en Red is focusing on specific implementations of DemocracyOS. We are working now working with governments and activists all over Latin America. If you are interested in our online participation tools you can check them out on our site.
https://democraciaos.org/en/
GNU General Public License v3.0
1.77k stars 616 forks source link

Define local SMTP #1442

Closed wixaw closed 7 years ago

wixaw commented 7 years ago

Hi We want to use DemocracyOs internally We want to use our SMTP server, our regulations prohibit the use of external providers. How can we configure it?

Thanks

mjlescano commented 7 years ago

Hi @willouuu !

You can use the notifications.nodemailer configuration, as described here: http://docs.democracyos.org/configuration.html#-notifications-nodemailer-

Evertything thats inside the "nodemailer" key, will be passed to the Nodemailer library, more options are available here: https://nodemailer.com/smtp/

For example, our mailtrap smtp config on production.json is something like this:

{
  "notifications": {
    "nodemailer": {
      "host": "mailtrap.io",
      "port": 2525,
      "auth": {
        "user": "username",
        "pass": "the-password"
      }
    }
  }
}

And, if you want to configure it with environment variables, it would be like this:

NOTIFICATIONS_NODEMAILER='{ "host": "mailtrap.io", "port": 2525, "auth": { "user": "username", "pass": "the-password" } }'
wixaw commented 7 years ago

Thank you very much ! You should put this example in the documentation. We do not understand that we must put these instructions in the variable NOTIFICATIONS_NODEMAILER

wixaw commented 7 years ago

Hi, Sorry To latest version (2.9.3), not receveid new topic notification in single forum mode (but 2.8.1 it's work ) King regards