Closed massej closed 12 months ago
@ymarcon is there a new version coming to add the missing line?
Isn't it something that you can pass in the JAVA_OPTS?
... -Dmail.smtp.ssl.protocols=TLSv1.2 ...
Note: PROP_TLS
is for extracting the spring.mail.tls
property, which value is a logical.
Still doesnt connect.
I forgot to add in the spring.log I also have this
javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2
https://stackoverflow.com/questions/47166425/how-to-force-javamailsenderimpl-to-use-tls1-2
Alot of people have the same issue
returned as an SMTP error by some Microsoft mail server) and didn't go away with 1.5.0-b01; but upgrading to latest available (com.sun.mail:javax-mail:1.6.2) along with the session property, seemed to resolve the issue
We are also using a Microsoft mail server, and when I check the current agate version 2.8.0 of the mailx it is 1.5.0-b01.
I think we just need to update the mailx-mail client to at least 1.6 and it will support TLS 1.2, is it possible to have a docker image with the mailx version 1.6 that I can test on my side?
We are using this docker repos : https://hub.docker.com/r/obiba/agate/tags
Hi, a new snapshot
image is available for testing with your setup.
It uses new javax.mail
version (1.6.2) and explicitly sets mail ssl protocol to tls1.2
I just tested the snapshot version (2.9.0-snapshot), @meek0 everything works! You're the best, thank you!
Describe the bug TLS 1.2 handshake doesnt work on JavaMailSenderImpl on port 587.
Error :
Use a TLS mail server that require at least TLS 1.2.
There is a missing property that need to be set : props.put("mail.smtp.ssl.protocols", "TLSv1.2");