After configuring the SMTP server settings, test email fails with the following message
VERBOSE [http-0.0.0.0-8080-1] STDOUT - DEBUG SMTP: exception reading response: java.net.SocketTimeoutException: Read timed out
YYYY-MM-DD HH:MM:SS ERROR [http-0.0.0.0-8080-1] function id: system:administration_email_configuration.98 - Error Sending Email
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:342)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:357)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346)
Caused by: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
.......
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
RESOLUTION 1
Foglight Server's default setting for SMTP response time is 2 minutes, this is usually sufficient time for the packets to be sent successfully to the mail server and acknowledge successful confirmation by the mail server.
If there is a network issue and takes longer than 2 minutes, the timeout period can be increased by creating the following registry variables of type integer, representing the desired timeout value in seconds.
mail.socket.timeout
mail.connection.timeout
RESOLUTION 2
Ensure that the firewall ports are open for connections from the Foglight Management Server (FMS) to the mail server.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center