How to track the status of SMTP messages sent
search cancel

How to track the status of SMTP messages sent

book

Article ID: 13873

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - Scheduler (dSeries)

Issue/Introduction

You can configure the SMTP server to communicate with the CA WA Desktop Client and the CA Workload Automation DE server.

Is there a log file that tracks the status of SMTP messages sent?

Environment

All releases of Workload Automation DE

Resolution

From the Workload Automation DE standpoint you can refer to the tracelog.txt. 

For example we can see the following line. 

20170409 17:00:21.783 [emailclient] [INFO] DM.Appl.dm-non-application: [2017-04-09_17:00:21.783] Queuing message - Subject: JOB Status Email Notification from CA Workload Automation:xxxxx.512.UNIX3 to [email protected] 

If the connection to the mail server is broken then there will errors as shown below 

20170409 17:00:21.789 [essential] [ERROR] EmailNotification: [2017-04-09_17:00:21.789] Exception: Couldn't connect to host, port: mailserver, 25; timeout 300000 
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailserver, 25; timeout 300000; 
nested exception is: 
java.net.UnknownHostException: mailserver 
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2054) 
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:745) 
Caused by: java.net.UnknownHostException: mailserver 

In the absence of any errors the connection between Workload Automation DE and email server is fine. If you still do not receive emails then you need to troubleshoot your SMTP server.

Additional Information