Java J2EE based bug defect tracking database: Javamail and Anti Virus
Bugzero one-for-all bug tracking and help desk support system
Q: javax.mail.MessagingException: Could not connect to SMTP host:, port: 25;
   nested exception is: Software caused connection abort: connect
	at com.sun.mail.smtp.SMTPTransport.openServer(
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(
	at javax.mail.Service.connect(
	at javax.mail.Service.connect(
	at javax.mail.Service.connect(
	at com.sun.mail.smtp.SMTPTransport.connect(

A: Based on the error message "Software caused connection abort: connect", it could be
   caused by some anti-virus software blocking the port 25. Check your port blocking rule.

   The command line telnet is also very help:
   telent mail.server-or-ip-address 25
   EHLO mail.server-or-ip-address

   If the error is "Connection refused", then the server is probably not running,
   use netstat -aon to find the service is running.

   If the error is "Connection failed", then the firewall and/or anti-virus software may be blocking the port.     

* Reference brought to you by Bugzero, it's more than just bug tracking software!

Home - FAQs