FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
FortiKoala
Staff
Staff
Article Id 193401
Description
Exception reading response' Messages When Attempting to Send Email

Solution
Issue:  When using the Network Sentry email function in features such as sponsorship approval for Guest Self-Registration, the message "Exception reading response" appears.  In the case of Self-Registration, the request is not approved.   

This message indicates the email failed to send due to a timeout between Network Sentry and the email server.

The output.master log prints a similar message:

Failed to send email to <email address>

javax.mail.MessagingException: Exception reading response;
nested exception is:

java.net.SocketTimeoutException: Read timed out
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2036)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1862)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1100)
at com.bsc.util.EmailManager._sendEmail(EmailManager.java:685)
at com.bsc.util.EmailManager.sendEmail(EmailManager.java:582)
at com.bsc.util.EmailManager.sendEmail(EmailManager.java:197)
at com.bsc.plugin.guest.SelfRegRequestServer.sendAccountDetailsToSponsor(SelfRegRequestServer.java:1252)
at com.bsc.plugin.guest.SelfRegRequestServer.approveGuestAccess(SelfRegRequestServer.java:1140)
at com.bsc.plugin.guest._SelfRegRequestServer_Tie._invoke(Unknown Source)


The timeout value is currently hardcoded to 30 seconds and not configurable.  In most environments, this has been acceptable.  However, in a very few cases, this may need to be changed.        


Solution:  The timeout value will be made configurable in the Administrative UI in a future Network Sentry release.


Contributors