From cc1f250eb7e320118340cf498dbad2a7cd8cdc65 Mon Sep 17 00:00:00 2001 From: Michele Agostinelli Date: Fri, 1 Mar 2024 10:30:17 +0000 Subject: [PATCH] Update mail.exs New conf to work with smtp starttls in yunohost --- conf/mail.exs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/conf/mail.exs b/conf/mail.exs index c8ef46e..b6369ea 100644 --- a/conf/mail.exs +++ b/conf/mail.exs @@ -4,12 +4,19 @@ config :mobilizon, Mobilizon.Web.Email.Mailer, relay: "127.0.0.1", #hostname: "127.0.0.1", # usually 25, 465 or 587 - port: 25, + port: 587, username: "__YNH_USER__", password: "__YNH_USER_PASSWORD__", # can be `:always` or `:never` - tls: :if_available, - allowed_tls_versions: [:"tlsv1.2"], + tls: :always, + tls_options: [ + versions: [:"tlsv1.2",:"tlsv1.3"], + verify: :verify_peer, + cacerts: :public_key.cacerts_get(), + server_name_indication: '__DOMAIN__', + depth: 99 + ], + ssl: false, retries: 1, # can be `true` no_mx_lookups: false,