Docker email issue for send notifications

Elixir was installed, in local, with Swoosh library and send mail correctly with this config.

  adapter: Swoosh.Adapters.SMTP,
  relay: "mail.jpberlin.de",
  hostname: "mail.jpberlin.de",
  port: 587,
  username: "MY_EMAIL",
  password: "LETMEIN",
  ssl: false,
  tls: :always,
  allowed_tls_versions: [:"tlsv1.2"],
  tls_options: [
    versions: [:"tlsv1.2"],
    verify: :verify_none
    ],
  retries: 3,
  no_mx_lookups: true,
  auth: :always
{:ok, "2.0.0 Ok: queued as A8F4AAB1CC\r\n"}

But in the server, with Docker with the same config, always get next error:

Failed sending email to elmau@cuates.net. {:retries_exceeded, {:temporary_failure, ~c"mail.jpberlin.de", :tls_failed}}

Neither works changing the port to 465, it’s worse because it doesn’t work locally. As reported on this ticket: https://github.com/swoosh/swoosh/issues/811

Any idea for debug this problem?