Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Could not connect to SMTP host: mail.address.com, port: 25;

Could not connect to SMTP host: mail.address.com, port: 25;

StarTeam Notification Agent appears to be working but when attempting to send a mail triggered by a change in the workflow, the following error occurs and no emails are sent.

javax.mail.MessagingException: Could not connect to SMTP host: mail.address.com, port: 25;

nested exception is:
java.net.SocketException: Network is unreachable: connect

Sending mail through the CPC is successful, using the same mail server address.

The reason this occurs is that the machine running the Notification Agent is using Java 7. Java 7 defaults to use IPv6 which results in the Notification Agent never finding the mail server. 

To resolve this make the following changes to the notificationagent.stjava64 file;

  1. Locate the line

    options=-Xmx256m
     
  2. Amend this line to be

    options=-Xmx256m -Djava.net.preferIPv4Stack=true
     
  3. Save the file

This switch forces Java and the Notification Agent to search using IPv4.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-09-29 20:15
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.