• Workflow-mail configuration

  • He we will discuss about how to make customization and improvement to the OpenKM source code.
He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #12574  by amwilliam
 
Hi, I know this topic has been sent before, but I have tried everything and it does not work, I saw all the forum tried all solutions but still doesnt work. Im working with openkm 5.0 and jBPM 3.3.1. I dont know if im missing some proppertie or adding wrong propperties. This is the content of my jbpm.cfg.xml:
Code: Select all
<jbpm-configuration>

<!-- 
The default configurations can be found in org/jbpm/default.jbpm.cfg.xml 
Those configurations can be overwritten by putting this file called 
jbpm.cfg.xml on the root of the classpath and put in the customized values.
-->
<!--
<jbpm-context>
<service name='persistence' factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />
</jbpm-context>
-->
<string name="jbpm.mail.smtp.host" value="smtp.gmail.com" />
<string name="jbpm.mail.from.address" value="mymail@gmail.com"/>
<string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
<bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true"/>

<string name="jbpm.mail.debug" value="true" />
<string name="jbpm.mail.smtp.port" value="465" />
<string name="jbpm.mail.smtp.starttls.enable" value="true" />

<string name="jbpm.mail.smtp.user" value="mymail0@gmail.com" />
<string name="jbpm.mail.smtp.password" value="mypassword" />
<string name="jbpm.mail.smtp.ssl" value="true" />

<string name="jbpm.mail.smtp.socketFactory.port" value="465" />
<string name="jbpm.mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory" />
<string name="jbpm.mail.smtp.auth" value="true" />
<!--
<string name="jbpm.mail.smtp.ssl" value="false" />
<string name="jbpm.mail.smtp.port" value="25" />
<string name="jbpm.mail.smtp.user" value="openkm@nosuchdomain.com" />
<string name="jbpm.mail.smtp.pwd" value="somepassword" />
<string name="jbpm.mail.smtp.pass" value="somepassword" />
<string name="jbpm.mail.smtp.password" value="somepassword" />
<string name="jbpm.mail.smtp.auth" value="true" />
<string name="jbpm.mail.smtp.starttls.enable" value="false" />
<string name="jbpm.mail.debug" value="true" />
-->

</jbpm-configuration>
When I get to the mail action of the workflow I get the following exception:
Code: Select all
org.jbpm.JbpmException: couldn't send email
...
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. z6sm14884071anf.22
Im working with a gmail acount that works fine with notifications for actions in Openkm like upload a file.
Somebody please help me, am a little desperate.

Thanks.
 #12596  by jllort
 
That's a configuration problem, you need configure SSL / TLS, are you sure that this are the configuration parameter for doing it, because are very similar than jboss used on mail-service.xml and it's very strange jbpm use same descriptors than jboss mail poll.
 #12625  by amwilliam
 
Hi,

I just added these propperties because I saw them in a website, but it was just because I was trying everything and also they did not generate any exception. The original propperties I used where:
Code: Select all
<string name="jbpm.mail.smtp.host" value="smtp.gmail.com" />
<string name="jbpm.mail.from.address" value="mymail@gmail.com"/>
<string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
<bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.OKMAddressResolver" singleton="true"/>
<string name="jbpm.mail.debug" value="true" />
<string name="jbpm.mail.smtp.port" value="465" />
<string name="jbpm.mail.smtp.starttls.enable" value="true" />
<string name="jbpm.mail.smtp.user" value="mymail0@gmail.com" />
<string name="jbpm.mail.smtp.password" value="mypassword" />
<string name="jbpm.mail.smtp.auth" value="true" />
Still it generates the same error, I dont know if you can tell me if Im missing something or wich are the propperties to enable the SSL / TSL for gmail.

Thank you.
 #12684  by jllort
 
Seems is not supported, we've not any installation with jbpm ssl configuration. In forum says create your own mail class, other option is configure postfix on server ( if you're on linux ) and send across it.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.