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 email server



Unable to connect to email server in production through unsecured port 25.

Error Messages

Caused by: PKIX path building failed: unable to find valid certification path to requested target 
... 67 more 
Caused by: unable to find valid certification path to requested target 
... 73 more 
2014-05-21 16:10:22,760 <redacted> (ivity<redacted>) ERROR <redacted> MessagingException caught connecting to email server: javax.mail.MessagingException; 
nested exception is: 
nested exception is: 
at com.sun.mail.imap.IMAPStore.protocolConnect( 
at javax.mail.Service.connect( 
at com.pegarules.generated.activity.ra_action_pop3orimapconnectivity_cf9add42d192e539d0253070baaa2314.step5_circum0(
at com.pegarules.generated.activity.ra_action_pop3orimapconnectivity_cf9add42d192e539d0253070baaa2314.perform( 
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity( 
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt( 

Steps to Reproduce

Attempt to connect directly to Windows 2003 Exchange Server through unsecured port 25

Root Cause

PRPC attempted to use TLS to connect through unsecured port 25.
The backend server was detected to support TLS.
There are underlying flaws in te PRPC code that have been addressed - see resolution below.


This case was resolved by connecting to a relay email server rather than directly to the Exchange server. This was part of an overall infrastructure change that suppressed the behavior of PRPC causing the issue to occur.

Related hot fixes:

HFix-6859 which conditionally suppresses the StartTLS request if the mail server supports TLS.
HFix-8936 which fixes a problem in PRPC in supporting TLS

Published February 15, 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