play-mailer icon indicating copy to clipboard operation
play-mailer copied to clipboard

[2.x] How to send a mail using TLSv1.2 or TLSv1.3

Open djonmayer opened this issue 3 years ago • 3 comments

I have to use TLSv1.2 or TLSv1.3 with 2.4.1 of play-mailer-plugin. In the new version of JDK TLSv1 and TLSv1.1 are disabled. How I can configure play-mailer-plugin to use the new version of TLS?

djonmayer avatar May 22 '21 06:05 djonmayer

HI @djonmayer

Any success updating to work with TLS 1.2 or up?

iammichiel avatar Jun 11 '21 15:06 iammichiel

Hi @djonmayer, @iammichiel,

Try this configuration. in play.mailer.props ssl.protocols = "TLSv1.2" or ssl.protocols = "TLSv1.3"

in conf:

play {
  mailer {
    props {
      ssl.protocols = "TLSv1.2"
    }
  }
}

ihertanto avatar Oct 25 '21 11:10 ihertanto

In version 2.4.1 of mailer-plugin you can only use "smtp.xxx" for configuration.

djonmayer avatar Oct 27 '21 17:10 djonmayer

In version 2.4.1 of mailer-plugin you can only use "smtp.xxx" for configuration.

v2.4.1 was released in 2015, you should upgrade. It is possible to use newer TLS versions, also see:

  • https://github.com/playframework/play-mailer/issues/134
  • https://github.com/playframework/play-mailer/issues/150

We are not going to fix v2.4.x anymore.

mkurz avatar Jul 21 '23 11:07 mkurz