Q: javax.mail.MessagingException: Could not connect to SMTP host: xxx.domain.com, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: 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
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!