FWIW - 26.2.5 images with Elixir 1.16.2 are available now for over a week. My problem was indeed caused by that OTP 25/26 bug but… for “posterity” it was not enough to just replace OTP with 26.2.5!
Once I did built the “runner” image with 26.2.5 it started throwing another error, namely a
- {:bad_cert, :max_path_length_reached}
one, which of course was never a problem before
Luckily this one was much easier to find a solution to. Going to Erlang -- ssl and doing search for “path” revealed
https://www.erlang.org/doc/man/ssl#type-allowed_cert_chain_length
which talks about “depth” so searching for “depth” lead me to an option in common_option, which given a nice, round number of 64 cured the setup. Thus my current (working) prod config – if somebody ever needs hints is:
config :my_app, MyApp.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("SMTP_RELAY", "mail.myapp.com"),
hostname: System.get_env("SMTP_HOSTNAME", "mail.mysmtpserver.com"),
username: System.get_env("SMTP_USERNAME", "no-reply@myapp.com"),
password: System.get_env("SMTP_PASSWORD"),
auth: :always,
ssl: false,
tls: :always,
tls_options: [
versions: [:"tlsv1.3"],
cacerts: :public_key.cacerts_get(),
server_name_indication: 'mail.mysmtpserver.com', # what your certificate is issued for
depth: 64, # important or stuff may crash with - {:bad_cert, :max_path_length_reached}
],
port: 587,
retries: 2
hostnames and application name are “dummies” of course.
to @al2o3cr the umpteenth time 