Page 1 of 1

Workflow-mail configuration

PostPosted:Sat Oct 15, 2011 4:19 am
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.

Re: Workflow-mail configuration

PostPosted:Sat Oct 15, 2011 10:42 am
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.

Re: Workflow-mail configuration

PostPosted:Tue Oct 18, 2011 4:28 pm
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.

Re: Workflow-mail configuration

PostPosted:Sun Oct 23, 2011 6:02 am
by amwilliam
No answer?
Is it true that jBPM does not support SSL/TLS?

http://community.jboss.org/thread/11836 ... hread=true

Thank you.

Re: Workflow-mail configuration

PostPosted:Sun Oct 23, 2011 10:32 am
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.