diff --git a/config/config.exs b/config/config.exs index 16de4ecce..d609a9194 100644 --- a/config/config.exs +++ b/config/config.exs @@ -92,6 +92,7 @@ config :mobilizon, Mobilizon.Web.Email.Mailer, adapter: Bamboo.SMTPAdapter, server: "localhost", hostname: "localhost", + # usually 25, 465 or 587 port: 25, # or {:system, "SMTP_USERNAME"} username: nil, @@ -102,7 +103,6 @@ config :mobilizon, Mobilizon.Web.Email.Mailer, # or {":system", ALLOWED_TLS_VERSIONS"} w/ comma seprated values (e.g. "tlsv1.1,tlsv1.2") allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"], # can be `true` - ssl: false, retries: 1, # can be `true` no_mx_lookups: false diff --git a/docs/administration/configure/email.md b/docs/administration/configure/email.md index 8cdf17b9a..bc45e57ef 100644 --- a/docs/administration/configure/email.md +++ b/docs/administration/configure/email.md @@ -5,19 +5,19 @@ Mobilizon requires a SMTP server to deliver emails. Using 3rd-party mail provide ## SMTP configuration Mobilizon default settings assumes a SMTP server listens on `localhost`, port `25`. To specify a specific server and credentials, you can add the following section in your `prod.secret.exs` file and modify credentials to your needs. + ```elixir config :mobilizon, Mobilizon.Web.Email.Mailer, adapter: Bamboo.SMTPAdapter, server: "localhost", hostname: "localhost", + # usually 25, 465 or 587 port: 25, username: nil, password: nil, # can be `:always` or `:never` tls: :if_available, allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"], - # can be `true` - ssl: false, retries: 1, # can be `true` no_mx_lookups: false,