• Mail configuration - OpenKM Community 6.3.1

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #41911  by ahussain
 
Dear,
Thanks for the reply!

I already configured as per the KB and confirmed the mail working status with "check mail" from "Utilities".
But the user mail notification is not working when subscribed for document.

Do any configurations need to be changed/applied other than below,

Settings which applied:
Server.xml
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
    mail.transport.protocol="smtp"
    mail.smtp.auth="true"
    mail.smtp.host="your smtp server"
    mail.smtp.user="<username>"
    password="<password>"
    mail.port="25"
    mail.debug="true"/>
Openkm.cfg
Code: Select all
application.url=http://localhost:8080/OpenKM/frontend/index.jsp
jbpm.cfg
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="noreply@xxxx.com" />
  <string name="jbpm.mail.smtp.host" value="SMTP Server" />
  <string name="jbpm.mail.debug" 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="noreply@xxxx.com" />
  <string name="jbpm.mail.smtp.pwd" value="Password of noreply" />
  <string name="jbpm.mail.smtp.pass" value="Password of noreply" />
  <string name="jbpm.mail.smtp.password" value="Password of noreply" />
  <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>
Thank you.
 #41920  by jllort
 
The bpm.cfg has no relation with user mail notification. Take a look at log when document is modified, ensure the user who has been subscribed it has mail address well done configured at Administration / Users. Finally take in mind the user who make the change will not receive the subscription notification ( it's a feature, you will not receive any notification from your own modifications ).
 #41927  by jllort
 
You only need to change:
conf/server.xml ( read here http://wiki.openkm.com/index.php/Tomcat ... figuration )
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.host="your smtp server"
mail.smtp.user="<username>"
password="<password>"
mail.port="25"
mail.debug="true"/>
With this change you got mail poll configured, you do not need anything else.
 #43311  by jasonjason1207
 
jllort wrote:You only need to change:
conf/server.xml ( read here http://wiki.openkm.com/index.php/Tomcat ... figuration )
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.host="your smtp server"
mail.smtp.user="<username>"
password="<password>"
mail.port="25"
mail.debug="true"/>
With this change you got mail poll configured, you do not need anything else.
Do you mean that I need to type my password and username here?

I tried to leave it as <username> and <password>, but it gives me an exception saying it contains invalid characters.
 #48544  by jllort
 
Seems JavaMail library does not support MAPI and seems are no plan for support in future https://javaee.github.io/javamail/FAQ#otherprovs. MAPI is the proprietary Exchange Protocol ( I do not know why Microsoft always must reinvent the wheel ? )

Here, seems there's some information about OpenMAPI https://stackoverflow.com/questions/175 ... s-required ( but last version was on 2010 ... seems no much future for it ).

If you succeed on getting it working with tomcat, notice us, we'll be pleased to improve the current configurations.

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.