Page 1 of 1

OpenKM-jbpm Email-configuration

PostPosted:Thu Oct 18, 2012 1:02 pm
by madhusudan
Dear pavila,

Our Enterprise is looking for a DMS and I tried using OpenKM-6.2 community edition , the product is really fantastic and it serves our purpose but the Major drawback
is in Workflow part that it is not sending Emails from JBPM. Is this issue present in professional edition also as we are planning to purchase the professional edition.
Can this be fixed as workflow is verymuch needed for us and obvious email notification is a must for tasks.
Following are the steps i took to configure Email for JBPM in --->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="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
    <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
    <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
    <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
    <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
    <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
  </jbpm-context>
  
  <string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
  <string name="jbpm.mail.from.address" value="myname@mydomain.com" />
  <string name="jbpm.mail.smtp.host" value="smtpout.mylocation.secureserver.net" />
  <string name="jbpm.mail.debug" value="true" />
  <string name="jbpm.mail.smtp.ssl" value="true" />
  <string name="jbpm.mail.smtp.port" value="25" />
  <string name="jbpm.mail.smtp.user" value="myname@mydomain.com" />
  <string name="jbpm.mail.smtp.pwd" value="somepswd" />
  <string name="jbpm.mail.smtp.pass" value="somepswd" />
  <string name="jbpm.mail.smtp.password" value="somepswd" />
  <string name="jbpm.mail.smtp.auth" value="true" />
  <string name="jbpm.mail.smtp.starttls.enable" value="true" />
  <string name="jbpm.mail.debug" value="true" />
  
  <bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.AddressResolver" singleton="true"/>
  
</jbpm-configuration>
I also configured server.xml with
Code: Select all
<Resource
    name="mail/OpenKM"
    type="javax.mail.Session"
    auth="Container"
    mail.smtp.host="smtpout.mylocation.secureserver.net"
    mail.smtp.auth="true"
    username="myname@some.com"
    password="somepassword"
    mail.user="myname@some.com"
    mail.password="somepassword"
    mail.port="25"
    mail.transport.protocol="smtp"
    mail.debug="true"
/>
when i started a workflow the error i got was okm-015026----- mail cannot be sent
Code: Select all
        at org.jbpm.mail.Mail.send(Mail.java:201)
        ... 82 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 Sorry, that domain
isn't in my list of allowed rcpthosts.
Can u please suggest a solution for this and kindly give information about this issue solved in professional edition

Thanks and Regards

Re: OpenKM-jbpm Email-configuration

PostPosted:Fri Oct 19, 2012 7:53 pm
by jllort
It could be useful to sending mails using MailUtils class http://doxygen.openkm.com/5.1.x/d4/d5a/ ... utils.html ( version 5.x is similar than 6.x -> apologies but we still not completed all documentation ).