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 authentication issue in Preprod environment

SA-62868

Summary



An an outbound email connection is configured to an Mail Transfer Agent (MTA) running on port 25. During testing, a few emails are sent; however, after three to four transmissions an error occurs and the connection is lost.


Error Messages



[ajp-bio-8009-exec-32] [STANDARD] [SBS:01.09.01] (pega_integrationengine_default) ERROR preprod.pegacloud.com|###.###.###.### user -  Unexpected exception caught while trying to send an email message.
javax.mail.MessagingException: Could not connect to SMTP host: smtp.mta.your_email.com, port: 25;
  nested exception is:
    java.net.SocketTimeoutException: connect timed out
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
    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.pegarules.generated.SendEmailMessage_071013_liQGQzhEyrJhavvWyarq0A.SendEmailMessage07_10_13(SendEmailMessage_071013_liQGQzhEyrJhavvWyarq0A.java:722)
    at com.pegarules.generated.SendEmailMessage_071013_liQGQzhEyrJhavvWyarq0A.invoke(SendEmailMessage_071013_liQGQzhEyrJhavvWyarq0A.java:87)
  ...
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:231)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
    ... 72 more
.


Steps to Reproduce



Configure an outbound email connection to port 25 in Pega Cloud.


Root Cause



AWS as the platform for Pega Cloud has throttled the use of port 25. After a few connection attempts to this port, the port is blocked for some time for security reasons. Similarly, other ports may be affected too.

This can be switched off on demand. However, it is usually only for a defined set of endpoints.

For some endpoints this is switched off by default.

For example,
 
smtp.office365.com.


Resolution



Perform the following local-change:

Switch off Port 25 throttling in AWS for SMTP MTA address.
Suggest Edit

Published September 22, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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