Sending the email to the following server failed : MyServer.md.com:25

Document ID : KB000094933
Last Modified Date : 16/10/2018
Show Technical Document Details
Issue:
Failed to send email, error message = Sending the email to the following server failed : myServer.md.com:25 
============================================================================ 
| Step: Send Email , WS call Env Error 
---------------------------------------------------------------------------- 
| Message: Sending the email to the following server failed : MyServer.md.com:25 
---------------------------------------------------------------------------- 
| Trapped Exception: Sending the email to the following server failed : myServer.md.com:25 
| Trapped Message: org.apache.commons.mail.EmailException: Sending the email to the following server failed : myServer.md.com:25 
---------------------------------------------------------------------------- 
STACK TRACE 
org.apache.commons.mail.EmailException: Sending the email to the following server failed : myServer.md.com:25 
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410) 
at org.apache.commons.mail.Email.send(Email.java:1437) 
at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:136) 
at com.itko.lisa.glass.SendEmailStep.execute(SendEmailStep.java:123) 
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981) 
at com.itko.lisa.test.TestCase.execute(TestCase.java:1294) 
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198) 
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183) 
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124) 
at com.itko.lisa.coordinator.Instance.run(Instance.java:204) 
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: myServer.md.com, port: 25; 
nested exception is: 
java.net.ConnectException: Connection timed out: connect 
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934) 
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) 
at javax.mail.Service.connect(Service.java:295) 
at javax.mail.Service.connect(Service.java:176) 
at javax.mail.Service.connect(Service.java:125) 
at javax.mail.Transport.send0(Transport.java:194) 
at javax.mail.Transport.send(Transport.java:124) 
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
Environment:
All Supported DevTest Releases
Resolution:
From the DevTest server, try to ping your SMTP Server using its fully qualified domain name (FQDN) and verify if you get request timed out errors.

Try to telnet (you will need Telnet client) to your SMTP server on port 25.
Notice if you are able to connect and how long it takes.

If there are any network issues on the environment it can impact the connectivity between DevTest and the SMTP server.