Issues configuring WCM Email notifications with Google SMTP configuration

Initially I tried to configure the GMAIL SMTP for the WCM workflow notification email with following SMTP configuration in WCMConfigService.properties  

Port : 587  uses TLS (transport layer security, SSL encryption may be started by STARTTLS command at SMTP level if server supports it)




Got the following error message when I try to publish the content with workflow that has email action in publish stage,

EmailAction   E   <Null Message>
                                 com.presence.connect.connector.ConnectorException: E-mail action failed: Message could not be sent: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. 4sm61602586qak.11 - gsmtp

at com.aptrix.pluto.workflow.actions.EmailAction.sendEmail(EmailAction.java:764)
at com.aptrix.pluto.workflow.actions.EmailAction.executeEmail(EmailAction.java:905)
at com.aptrix.pluto.workflow.actions.EmailAction.doExecute(EmailAction.java:836)
at com.aptrix.pluto.workflow.actions.WorkflowAction.execute(WorkflowAction.java:186)
at com.aptrix.pluto.workflow.actions.ScheduledAction.immediateExecute(ScheduledAction.java:626)
at com.aptrix.pluto.workflow.actions.ScheduledAction.execute(ScheduledAction.java:505)
at com.aptrix.pluto.workflow.stages.WorkflowStage.executeActions(WorkflowStage.java:373)
at com.aptrix.pluto.workflow.stages.WorkflowStage.enter(WorkflowStage.java:425)
……
at com.ibm.wps.engine.phases.WPActionPhase.processPortlets(WPActionPhase.java:2796)
at com.ibm.wps.engine.phases.WPActionPhase.execute(WPActionPhase.java:664)
at com.ibm.wps.state.phases.AbstractActionPhase.next(AbstractActionPhase.java:146)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:954)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:681)
at com.ibm.wps.engine.Servlet.doPost(Servlet.java:988)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:1433)
at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:672)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:93)
at com.ibm.wps.engine.Servlet.service(Servlet.java:1421)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

I have tested the gmail SMTP configuration using the java mail and works fine with following configuration

<bean id="TestEmail" class ="org.springframework.mail.javamail.JavaMailSenderImpl" >
<property name="host" value="smtp.gmail.com" />
<property name="port" value="587" />
<property name="username" value="xxxxxxx@gmail.com" />
<property name="password" value="password" />
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.starttls.enable">true</prop>
</props>
</property>
</bean>



After doing some research , found that IBM Websphere Server doesn't support the "STARTTLS" that is required the by GMAIL SMTP.  


And also I tried with port : 465 (SSL, SMTPS encryption and authentication “wrapper” over SMTP)

Got the following error message when I try to publish the content with workflow that has email action in publish stage,

 0000002f EmailAction   E   <Null Message>
                                 com.presence.connect.connector.ConnectorException: E-mail action failed: Message could not be sent: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
at com.aptrix.pluto.workflow.actions.EmailAction.sendEmail(EmailAction.java:764)


Moved to third party SMTP mail servers after above unsuccessful attempts to configure the Gmail SMTP for the IBM WCM workflow notification emails.

Ref:
https://support.google.com/mail/answer/78775?hl=en

No comments:

Post a Comment