RSA Identity Governance and Lifecycle email not being sent due to javax.mail.MessagingException: Could not connect to SMTP host
Originally Published: 2017-06-21
Last Modified: 2023-10-06
Article Number
Applies To
RSA Product/Service Type: Enterprise Software
RSA Version/Condition: 6.9.1 and above
Platform: Linux
Issue
When the connection to the email server is tested, the following message is returned:
Default email account test: Failed to connect to the outbound email server
Details: Could not connect to SMTP host: <server name>, port: 25, response 421
Approval Email Account Test: Approval email account is not defined
Approval Reply Test: Approval inbound email server is not defined
Details: Could not connect to SMTP host: <server name>, port: 25, response 421
Approval Email Account Test: Approval email account is not defined
Approval Reply Test: Approval inbound email server is not defined
06/18/2017 12:35:58.100 WARN (http-0.0.0.0-8443-1) [com.aveksa.server.email.EmailSenderServiceClient] Messaging Exception connecting to the default mail server with the default account.
javax.mail.MessagingException: Could not connect to SMTP host: 168.192.1.2, port: 25, response: 421
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at com.aveksa.server.email.EmailClient.sendEmail(EmailClient.java:285)
at com.aveksa.server.email.EmailSenderServiceClient.testOutboundMailServer(EmailSenderServiceClient.java:421)
at com.aveksa.gui.pages.admin.system.email.settings.test.TestMailSettingsResultsDialogView.printContent(TestMailSettingsResultsDialogView.java:49)
at com.aveksa.gui.pages.base.view.DialogPageView.makeContent(DialogPageView.java:134)
at com.aveksa.gui.pages.base.view.DialogPageView.handleRequest(DialogPageView.java:34)
at com.aveksa.gui.pages.base.data.PageData.drawView(PageData.java:99)
at com.aveksa.gui.pages.base.data.PageData.handleRequest(PageData.java:91)
at com.aveksa.gui.pages.base.data.dialog.EditableDialogPageData.handleRequest(EditableDialogPageData.java:69)
at com.aveksa.gui.pages.PageManager.forwardRequest(PageManager.java:559)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:323)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:254)
at com.aveksa.gui.core.MainManager.handleRequest(MainManager.java:176)
at com.aveksa.gui.core.MainManager.doGet(MainManager.java:125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.aveksa.gui.core.filters.LoginFilter.doFilter(LoginFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.aveksa.gui.util.security.XSSFilter.doFilter(XSSFilter.java:20)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:701)Cause
Examining the Java Call Stack, we see the following significant Java Classes
javax.mail.MessagingException: Could not connect to SMTP host: 168.192.1.2, port: 25, response: 421 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:275)
- com.sun.mail.smtp are the Java Classes for email.
- Java Class SMTPTransport.openServer is making the connection to the email server, but has returned the MessagingException.
Resolution
However, RSA recommends you also engage the System Administrator for the system where the email server is running. Please note that RSA Identity Governance and Lifecycle Hardware Appliances do not have an email server installed, as the customer email server is always used.
Related Articles
Provisioning e-mails not being sent by RSA Authentication Manager 8.1 28Number of Views Email is sending HTML content in the subject line in RSA Identity Governance & Lifecycle 33Number of Views System internal error on RSA Authentication Manager 8.x when accessing options under System Settings for Email (SMTP), Log… 25Number of Views Formatting for syslog data sent from RSA Authentication Manager 8.x 416Number of Views Delay in sending emails from RSA Identity Governance & Lifecycle 110Number of Views
Trending Articles
Troubleshooting RSA MFA Agent for Microsoft Windows RSA SecurID Software Token for Microsoft Windows shows blank screen when asked to select a device where the token will be … RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide RSA SecurID software token .sdtid file fails to import into RSA SecurID Software Token 5.0 for Windows How to Replace the Web Server Certificate for the RSA Identity Governance & Lifecycle Web Console
Don't see what you're looking for?