From ec3a7a4c4d6b5976665e4ffea15b47420471f32d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 21 Oct 2020 10:10:44 +0200 Subject: [PATCH] Add a comment in docs and config for recommended email port values Signed-off-by: Thomas Citharel --- config/config.exs | 2 +- docs/administration/configure/email.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,