CA WA DE email not sent when application fails or complete

Document ID : KB000122535
Last Modified Date : 06/12/2018
Show Technical Document Details
Issue:
The Application has email notification.  The emails are not being sent and/or received after the application has ran.
Environment:
CA WA DE 11.3 / R12.x
OS: Any
Cause:
The DE server simply relays the mails to the mail server.  If there is an issue with network or the mail server, the tracelog of DE will show error messages like this
 
2018XXXX XX:06:45.660 [essential] [ERROR] EmailNotification: [2018-XX-XX_XX:06:45.660] Exception: Exception reading response
javax.mail.MessagingException: Exception reading response;
  nested exception is:
        java.net.SocketException: Connection reset
        at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2305)
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2032)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)
        at javax.mail.Service.connect(Service.java:364)
        at javax.mail.Service.connect(Service.java:245)
        at javax.mail.Service.connect(Service.java:194)
        at javax.mail.Transport.send0(Transport.java:253)
        at javax.mail.Transport.send(Transport.java:124)
        at com.ca.wa.core.library.email.SMTPManager.run(SMTPManager.java:195)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:210)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
        at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92)
        at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2285)
        ... 9 more



 
Resolution:
Make sure the mail ports from DE to mail server are open and accessible.  Check the connection to mail using a command line on DE server.

In Linux/UNIX, the following command may be used to test 
 
mail -s "TEST: Mail from host" some_user@mail.example.com -r some_de_account@mail.example.com -a /tmp/some_test_attachment
Additional Information: