Lỗi javax.mail.messagingexception could not convert socket to tls năm 2024

Humberto Blanco Castillo

unread,

Dec 9, 2020, 2:25:45 AM12/9/20

to DSpace Technical Support

My dspace server was working with the following configuration

mail.server.password = mypassword

mail.server.port = 587

mail.feedback.recipient = ${mail.from.address}

mail.admin = ${mail.from.address}

mail.alert.recipient = ${mail.from.address}

mail.registration.notify = ${mail.from.address}

mail.extraproperties = mail.smtp.starttls.enable=true, \

mail.smtp.socketFactory.port=587, \

mail.smtp.socketFactory.fallback=false

But a few days ago it stopped working,:

About to send test email:

- Subject: DSpace test email

Error sending email:

- Error: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not convert socket to TLS (javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)))

the only modification its that now we are working with openjdk

openjdk version "1.8.0_272"

OpenJDK Runtime Environment (build 1.8.0_272-b10)

OpenJDK 64-Bit Server VM (build 25.272-b10, mixed mode)

Any knows why of this error, or giveme any ligtha about this?

really appreciate your help

Humberto,

Jose Blanco

unread,

Dec 9, 2020, 2:50:56 AM12/9/20

to Humberto Blanco Castillo, DSpace Technical Support

Humberto,

I'm not sure, but from googling around I see that "You may get this error when you are trying to send an e-mail using gmail server in java."

Try making this change:

mail.extraproperties = mail.smtp.starttls.enable=true, \

mail.smtp.socketFactory.port=587, \

mail.smtp.socketFactory.fallback=false, \

This is really just a guess.

Hope it helps.

-Jose

Cameron, Jacob

unread,

Dec 9, 2020, 2:53:36 AM12/9/20

to Humberto Blanco Castillo, DSpace Technical Support

Hello Humberto,

Microsoft has ended TLS 1.0 and TLS 1.2 support for all their mail products. You need to ensure you are using TLS 1.2 or higher on your server or the messages will fail.

--

Jake Cameron, BCS(UNB)

Systems Support Specialist III

Information Systems and Technical Services University of Lethbridge Library

Phone:(403)329-2756

This e-mail, including any and all attachments, is only for the use of the intended recipient(s) and may contain information that is confidential or privileged. If you are not the intended recipient, you are advised that any dissemination, copying or other use of this e-mail is prohibited. Please notify the sender of the error in communication by return e-mail and destroy all copies of this e-mail. Thank you.

Caution: This email was sent from someone outside of the University of Lethbridge. Do not click on links or open attachments unless you know they are safe. Suspicious emails should be forwarded [email protected].

Cameron, Jacob

unread,

Dec 9, 2020, 8:45:42 AM12/9/20

to Cameron, Jacob, Humberto Blanco Castillo, DSpace Technical Support

That should have said TLS 1.0 and 1.1 support.

--

Jake Cameron, BCS(UNB)

Systems Support Specialist III

Information Systems and Technical Services University of Lethbridge Library

Phone:(403)329-2756

This e-mail, including any and all attachments, is only for the use of the intended recipient(s) and may contain information that is confidential or privileged. If you are not the intended recipient, you are advised that any dissemination, copying or other use of this e-mail is prohibited. Please notify the sender of the error in communication by return e-mail and destroy all copies of this e-mail. Thank you.

Humberto Blanco Castillo

unread,

Dec 10, 2020, 7:39:39 AM12/10/20

to DSpace Technical Support

Hi for all,

Today I finally found a solution, the problem was with the operating system. execute the following command