• OpenKM-jbpm Email-configuration

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #18794  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

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.