title: Tomcat can't able to connect to SMTP server
body: <p>I used tomcat 5.5 to host my web application. Previously the send mail feature is working fine. but suddenly it shows Following error while sending mail through SMPT server:</p>
  
  <pre><code>javax.mail.MessagingException: Could not connect to SMTP host: hostname, port: 26;
  nested exception is:
      java.net.ConnectException: Connection timed out
      com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
      com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
  </code></pre>
  
  <p>Tomcat is running on linux Centos OS. When I access the same SMTP host and port using my local tomcat it is working fine. Anybody has any idea what might be my problem?</p>