Sending email not working via Swoosh
I have private email server (running Mailcow), that works perfect with Kbin (including world biggest instance), Mastodon, PeerTube etc.
I can't get working Mobilizon with my server... I try everything ... all tls version, all version in docker, also I build from this git latest version.
I try on port 465 with ssl, and 587 with tls... but still got error.. on 465 I see this error:
{:retries_exceeded, {:network_failure, ~c"195.117.15.104", {:error, {:options, :incompatible, [verify: :verify_peer, cacerts: :undefined]}}}}
And on this settings Mobilizon don't even try to connect to my server.
on 587 I see error on my postfix:
warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331:
I try all version... from tlsv1 up to tlsv1.3 :/
My config on 465:
config :mobilizon, Mobilizon.Web.Email.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: "poczta.ftdl.pl",
port: 465,
username: "xxxxxxx@akcjareakcja.pl",
password: "xxxxxxx",
tls: :if_available,
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2",:"tlsv1.3"],
#allowed_tls_versions: [:"tlsv1.2",:"tlsv1.3"],
tls_options: [
versions: [:"tlsv1.2",:"tlsv1.3"],
verify: :verify_none,
cacerts: :public_key.cacerts_get(),
depth: 99
],
ssl: true,
retries: 4,
no_mx_lookups: false,
auth: :always
My config on 587
config :mobilizon, Mobilizon.Web.Email.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: "poczta.ftdl.pl",
port: 587,
username: "xxxxxx@akcjareakcja.pl",
password: "xxxxxxx",
tls: :always,
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2",:"tlsv1.3"],
#allowed_tls_versions: [:"tlsv1.2",:"tlsv1.3"],
# tls_options: [
# versions: [:"tlsv1.2",:"tlsv1.3"],
# verify: :verify_none,
# cacerts: :public_key.cacerts_get(),
# depth: 99
# ],
ssl: false,
retries: 4,
no_mx_lookups: false,
auth: :always