AnsweredAssumed Answered

Collector Log - Exception Occurred while testing email settings

Question asked by mparikh72 Champion on Jul 26, 2018
Latest reply on Jul 29, 2018 by Lynn_Williams

I am getting the following log entry on 2 outta my 9 collectors.......

 

7/25/18 10:51:08.357 PM EDT [INFO] [InitializationPool.Thread1] [Manager.com.timestock.tess.services.tang.TangIo] Exception occurred while testing email settings

org.apache.commons.mail.EmailException: Sending the email to the following server failed : dmzsmtprelay.xx.*********.com:25:Could not connect to SMTP host: dmzsmtprelay.xx.xxxxxxxxxx.com, port: 25

        at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:84)

        at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:175)

        at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:123)

        at com.timestock.tess.services.tang.TangIo.sendEventNotification(TangIo.java:666)

        at com.timestock.tess.services.tang.TangIo.persistEvent(TangIo.java:337)

        at com.timestock.tess.services.tang.TangIo.persistEvent(TangIo.java:292)

        at com.timestock.tess.services.tang.TangIo.generateEvent(TangIo.java:95)

        at com.timestock.tess.util.GenerateTangEvent.generateEvent(GenerateTangEvent.java:120)

        at com.timestock.tess.util.GenerateTangEvent.generateEvent(GenerateTangEvent.java:59)

        at com.timestock.tess.services.service.ServicesManager.initialize(ServicesManager.java:124)

        at com.timestock.tess.services.initialization.RunInitializers$IntializeWrapper.call(RunInitializers.java:87)

        at com.timestock.tess.services.initialization.RunInitializers$IntializeWrapper.call(RunInitializers.java:1)

        at com.timestock.tess.util.ThreadPool$ConcurrentCallableTask.call(ThreadPool.java:218)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : dmzsmtprelay.xx.xxxxxxxx.com:25

        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)

        at org.apache.commons.mail.Email.send(Email.java:1267)

        at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:80)

        ... 16 more

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: dmzsmtprelay.xx.xxxxxxxx.com, port: 25;

  nested exception is:

        java.net.ConnectException: Connection timed out (Connection timed out)

        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)

        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)

        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 org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)

        ... 18 more

Caused by: java.net.ConnectException: Connection timed out (Connection timed out)

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:589)

        at java.net.Socket.connect(Socket.java:538)

        at java.net.Socket.<init>(Socket.java:434)

        at java.net.Socket.<init>(Socket.java:286)

        at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:253)

        at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:129)

        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)

        ... 25 more

---------------------------------------------------------------------------------------------------------------------

I wanted to know where is this property defined so I can go make changes to it. I know that the issue is a firewall not allowing the traffic to go through (for which I've taken the necessary steps internally). 

 

Also, how come it's not showing on any of my other agent collectors?

Outcomes