Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to connect to SMTP server via PRPC

SA-6363

Summary



Users are unable to connect to SMTP server via PRPC.

Error Messages



127.0.0.1 your_operatorID - Exception caught while testing connection to your_server as user [email protected]_mailserver. 
javax.mail.MessagingException: Can't send command to SMTP host; 
  nested exception is: 
               javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
               at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1564) 
               at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1551) 
               at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:935) 
               at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:426) 
               at javax.mail.Service.connect(Service.java:288) 
               at javax.mail.Service.connect(Service.java:169) 
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.SendEmailMessage07_10_15(SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.java:713) 
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.invoke(SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.java:87) 
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133) 
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110) 
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8786) 
               at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181) 
           

Steps to Reproduce



Configure email server and perform test connectivity.

Root Cause



STARTTLS has been enabled at the Email server and the required certificate was not available at the PRPC application servers. As a result, the Truststore security handshake was failing.
 
Option1: Make PRPC application servers’ Truststore to work correctly with STARTTLS-enabled email infrastructure; admin should consider populating the application server's trust store to accept the SMTP server's security certificate. 
Option2: Or, disable STARTTLS on the desired SMTP endpoint

Resolution



Set the following Dynamic System Setting (DSS):
   DSS Name:   Email/DisableSecuritySTARTTLS
   Applies to:     Pega-IntSvcs
   Value:            true

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us