From 0888460edde016d35b4b39ae56e7267c35c379f6 Mon Sep 17 00:00:00 2001 From: Roman Cattaneo <> Date: Sat, 27 Dec 2025 09:04:32 +0100 Subject: [PATCH] mail config: assume modern mail submission --- config/runtime.exs | 6 +++--- lib/cklist/accounts/user_notifier.ex | 2 +- mix.exs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 7f355bb..ae8456e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -121,9 +121,9 @@ if config_env() == :prod do username: System.get_env("SMTP_USERNAME"), # mailuser password password: System.get_env("SMTP_PASSWORD"), - ssl: true, - # Used for STARTTLS config. We use SSL/TLS, so we don't need this. - tls: :never, + # assume STARTTLS + ssl: false, + tls: :always, auth: :always, retries: 2, # don't look up mx entries. We already specify everything correctly. diff --git a/lib/cklist/accounts/user_notifier.ex b/lib/cklist/accounts/user_notifier.ex index ae8c84c..956f7a5 100644 --- a/lib/cklist/accounts/user_notifier.ex +++ b/lib/cklist/accounts/user_notifier.ex @@ -8,7 +8,7 @@ defmodule Cklist.Accounts.UserNotifier do email = new() |> to(recipient) - |> from({"Cklist", "no-reply@mail.cklist.org"}) + |> from({"Cklist", "no-reply@cklist.org"}) |> subject(subject) |> text_body(body) diff --git a/mix.exs b/mix.exs index fbb491d..188288e 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Cklist.MixProject do def project do [ app: :cklist, - version: "0.1.0", + version: "0.1.1", elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod,