1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

Fix email (#194)

* Update mail.exs

New conf to work with smtp starttls in yunohost

* Auto-update README

* Revert "Update mail.exs"

* Revert "Revert "Update mail.exs""

---------

Co-authored-by: OniriCorpe <oniricorpe@disroot.org>
Co-authored-by: Michele Agostinelli <michele@agostinelli.eu>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
Tagada 2024-03-01 11:50:29 +01:00 committed by Félix Piédallu
parent 7e9b3d6f0c
commit 2b967a3eb5

View file

@ -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,