Clarity Emails Do Not Send With SMTP With TLS Enabled
search cancel

Clarity Emails Do Not Send With SMTP With TLS Enabled

book

Article ID: 264245

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

SMTP with TLS does not work.

It does work with Powershell scripts.

The following error appears when debug logging is set as per article Enable email notification debug logging:

DEBUG 2022-03-25 01:18:18,471 [pool-8-thread-10] notification.NotificationEmailService (clarity:admin:session:none) Sending mail to:[email protected]
DEBUG 2022-03-25 01:18:21,573 [pool-14-thread-1] notification.MailMessage (none:none:none:none) MailMessage.send() Send failed
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. h6-20020a056a00218600b004f65315bb37sm6048170pfi.13 - gsmtp
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at com.niku.union.notification.MailMessage.send(MailMessage.java:604)
at com.niku.union.notification.MailMessage.run(MailMessage.java:768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
DEBUG 2022-03-25 01:18:21,573 [pool-14-thread-1] notification.MailMessage (none:none:none:none) MailMessage.run() send failed

 

Environment

Release : 15.9.1

Resolution

Product Management designates this as an enhancement request.
Customers will need to join Product Management Office Hours/Innovation calls to increase the prioritization.

 

Additional Information

In the interim, the following workarounds/solutions can be implemented.

Cloud Environment Reference
Amazon (AWS)

https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html
https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html