By default, ITIM uses SUN's SMTP mail provider. It's possible that a successful connection to the SMTP mail provider might hang.
This is due to the default time-out values for the mail connection default to infinite.
Resolving the problem
If an attempt to connect to the mail server is unsuccessful (for whatever reason, mail server down, authentication error, etc.) the mail request is aborted and there is no impact to operations. If however, ITIM connects to the mail server and the mail server hangs while processing the request, additional mail requests will queue in the application and may eventually impact performance and availability.
To avoid the potential of the impact of a nonresponsive mail server, there are two parameters which may be specified in $ITIM_HOME/data/enRoleMail.properties that introduce time-out values to the mail traffic from ITIM to the mail server.
Each of the values defaults to infinite if the property is not explicitly stated:
mail.smtp.timeout Socket I/O timeout value in milliseconds
mail.smtp.connectiontimeout Socket connection timeout value in milliseconds.
A sample of how this might look in enRoleMail.properties implementing a 30-second timeout would be: