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



Users are unable to connect to SMTP server via PRPC.

Error Messages 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: 
      PKIX path building failed: unable to find valid certification path to requested target 
               at com.sun.mail.smtp.SMTPTransport.sendCommand( 
               at com.sun.mail.smtp.SMTPTransport.sendCommand( 
               at com.sun.mail.smtp.SMTPTransport.ehlo( 
               at com.sun.mail.smtp.SMTPTransport.protocolConnect( 
               at javax.mail.Service.connect( 
               at javax.mail.Service.connect( 
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.SendEmailMessage07_10_15( 
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.invoke( 
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection( 
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime( 
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime( 
               at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection( 

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


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