The Mail server settings are setup for the primary mail server and the test runs successfully.
Mail server settings
Server Name: smtp.gmail.com
Port: 465
To Email ID: Same as From Email ID
Time Out (seconds): 10
Authentication Details
- I have the user/pass for my gmail business account
Secure Connection Details (optional)
- I have SSL Enabled checked
- The SSL Certificate and SSL KeyPassword are left empty
(The Test Mail runs successfully)
Email based SMS Profile settings
Profile Name: SMS_Alert
To Email Address: I have my cell phone's SMS email gateway
From Email Address: The same gmail business account used in the Mail server settings
Mail Subject/Subject: I left the default
Mail Message/Message: I left the default
When I run the
Test Actions button I get a dialog that says
Unable to send due to java.net.SocketTimeoutException
The "/opt/ManageEngine/OpManager/logs/stderr7.txt" gives the following stack trace:
############################################################################
13:47:40:298 PM javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
13:47:40:299 PM at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1090)
13:47:40:299 PM at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:986)
13:47:40:299 PM at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)
13:47:40:299 PM at javax.mail.Service.connect(Service.java:233)
13:47:40:299 PM at javax.mail.Service.connect(Service.java:134)
13:47:40:299 PM at javax.mail.Service.connect(Service.java:86)
13:47:40:299 PM at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:104)
13:47:40:299 PM at com.adventnet.me.opmanager.server.util.MailServerHandler.checkMailServer(MailServerHandler.java:121)
13:47:40:299 PM at com.adventnet.me.opmanager.server.util.MailServerHandler.checkMailServer(MailServerHandler.java:77)
13:47:40:299 PM at com.adventnet.me.opmanager.webclient.admin.notifications.UpdateProfilesAction.testAction(UpdateProfilesAction.java:502)
13:47:40:299 PM at com.adventnet.me.opmanager.webclient.admin.notifications.UpdateProfilesAction.execute(UpdateProfilesAction.java:83)
13:47:40:299 PM at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
13:47:40:299 PM at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
13:47:40:300 PM at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
13:47:40:300 PM at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
13:47:40:300 PM at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
13:47:40:300 PM at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
13:47:40:300 PM at com.adventnet.nms.webclient.login.AuthenticationFilter.doFilter(AuthenticationFilter.java:308)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
13:47:40:300 PM at com.adventnet.nms.webclient.i18n.EncodingFilter.doFilter(EncodingFilter.java:70)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
13:47:40:300 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
13:47:40:300 PM at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
13:47:40:300 PM at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
13:47:40:300 PM at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
13:47:40:300 PM at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
13:47:40:300 PM at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
13:47:40:300 PM at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
13:47:40:300 PM at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
13:47:40:301 PM at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
13:47:40:301 PM at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
13:47:40:301 PM at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
13:47:40:301 PM at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
13:47:40:301 PM at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
13:47:40:302 PM at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
13:47:40:302 PM at java.lang.Thread.run(Unknown Source)
############################################################################
I know for sure that my
SMS Profile is using the primary
Mail server setting. I know this because an increase in the
Time Out (seconds), in the settings, will directly effect the amount of time it takes the SMS Profile Test to fail.
Any help is much appreciated!
Thanks,
--Mike