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

Email Listener fails to start with PRException

SA-64846

Summary



Email Listener fails to start with PRException. This occurs post upgrading the email server to MS Exchange 2013 and using the IMAP protocol for inbound processing.


Error Messages



00000016 SystemOut 16:10:32,682 [nectorThreadPool : 4] [ STANDARD] [ ] (tener.ListenerStateManagerImpl) ERROR - Unexpected exception.
com.pega.pegarules.pub.PRException: Failed to connect to
From: (BCDF6010B5B2E32C363D0F31E261DA779:(MBean Access))
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.setup(EmailListener.java:650)
at com.pega.pegarules.integration.engine.internal.services.listener.ListenerWrapper.launchListener(ListenerWrapper.java:138)
at com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl.startOneListener(ListenerStateManagerImpl.java:713)
at com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl.startListener(ListenerStateManagerImpl.java:618)
...
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:522)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
Caused by:
javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.testConnectionToResponseServer(EmailListener.java:1355)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.setup(EmailListener.java:648)
... 57 more
Caused by:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.ibm.jsse2.c.c(c.java:121)
at com.ibm.jsse2.c.a(c.java:92)
...
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
... 63 more



Steps to Reproduce

In the Email Server instance, give the IP address of SMTP 2013 Exchange Server using IMAP with SSL checked by adding port 993 and send an email using this account . Email is not sent from the system.


Root Cause

Issue with the SSL handshake. The Mail Box server requires SSL, while the SMTP MTA does not accept SSL. In PRPC 6.2SP1, SMTP is configured implicitly with the settings for IMAP/POP3.


Resolution

Perform the following local-change:

1. Add the following additional settings for SMTP to the 'Advanced' tab of the Email Server rule:
  • mail.smtp.auth.plain.disable = false
  • mail.smtp.starttls.emable = false
  • mail.smtp.starttls.required = false

2. Create a new EmailServer rule where the 'Use SSL' is not checked
3. Add this server to the EmailListener rule, in the field "Send Reply via Email Server"


Alternatively, the set Dynamic System Setting 'email/blockResponse' (Owning Ruleset: Pega-IntSvcs). With this setting, all EmailListeners in the system are disabled from sending any notifications, and therefore, no connection with SMTP MTA is established.




 

Published August 19, 2019 - 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