1Respostas

O Lumis apresenta problemas para enviar e-mails via SMTP e ocorre mensagens de erros conforme está abaixo sobre o uso do protocolo TLS:

 

ERROR      [SendMailThread-2C9FBBCA7EB32B7A017EB32E8DB00666] lumis.portal.sendmail.SendMailManager - Could not send mail: Mail[2C9FBBCA7EB32B7A017EB32E8DB10667]: Subject "Fale Conosco"; From "XXXXXXXXXXXX.com.br"; To "XXXXXXXXXXX.com"; Cc ""; Bcc ""; Reply-To ""
lumis.portal.UnexpectedException: STR_UNEXPECTED_EXCEPTION
        at lumis.portal.sendmail.smtp.SmtpMailSender.sendMail(SmtpMailSender.java:125)
        at lumis.portal.sendmail.SendMailManager.sendMail(SendMailManager.java:112)
        at lumis.portal.sendmail.SendMailManager.sendQueuedMail(SendMailManager.java:204)
        at lumis.portal.sendmail.SendMailManager.processNextQueuedMail(SendMailManager.java:303)
        at lumis.portal.sendmail.SendMailThread.run(SendMailThread.java:66)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
        at org.apache.commons.mail.Email.send(Email.java:1267)
        at lumis.portal.sendmail.smtp.SmtpMailSender.sendMail(SmtpMailSender.java:117)
        ... 4 more
Caused by: javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1880)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:648)
        at javax.mail.Service.connect(Service.java:317)
        at javax.mail.Service.connect(Service.java:176)
        at javax.mail.Service.connect(Service.java:125)
        at javax.mail.Transport.send0(Transport.java:194)
        at javax.mail.Transport.send(Transport.java:124)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)
        ... 6 more
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
        at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170)
        at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:103)
        at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:444)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:422)
        at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:507)
        at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:447)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1875)

 

ou

 

 

 

ERROR      [SendMailThread-2C9FBBCA7E830BCC017E83101B3D73FC] lumis.portal.sendmail.SendMailManager - Could not send mail: Mail[2C9FBBCA7E830BCC017E83101B3D73FD]: Subject "teste"; From "XXXXXXXXXXX.com.br"; To "xxxxxxxx@gmail.com"; Cc ""; Bcc ""; Reply-To ""
lumis.portal.UnexpectedException: STR_UNEXPECTED_EXCEPTION
at lumis.portal.sendmail.smtp.SmtpMailSender.sendMail(SmtpMailSender.java:125)
at lumis.portal.sendmail.SendMailManager.sendMail(SendMailManager.java:112)
at lumis.portal.sendmail.SendMailManager.sendQueuedMail(SendMailManager.java:204)
at lumis.portal.sendmail.SendMailManager.processNextQueuedMail(SendMailManager.java:303)
at lumis.portal.sendmail.SendMailThread.run(SendMailThread.java:66)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
at org.apache.commons.mail.Email.send(Email.java:1267)
at lumis.portal.sendmail.smtp.SmtpMailSender.sendMail(SmtpMailSender.java:117)
... 4 more

Caused by: 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. Visit Honoring 72 years of democracy  [XXXXXXXXXXXX.com]

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)
... 6 more

Em 01/02/2022 11:37

Editada em 01/02/2022 11:42

1 Respostas

Sempre utilize o Lumis com a versão java mais recente.

Para solucionar este problema inclua o parametro -Dmail.smtp.ssl.protocols=TLSv1.2 no serviço de aplicação para que force o SMTP a usar o protocolo TLS 1.2.

Em 01/02/2022 11:40
Responder

Acompanhar pergunta

Receba atualizações e novas respostas por e-mail, e ajude a resolver as dúvidas da comunidade.
Quero acompanhar essa pergunta