Mail configuration - OpenKM Community 6.3.1

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.
Post Reply
ahussain
Junior Boarder
Junior Boarder
Posts: 20
Joined: Thu Jun 02, 2016 12:13 pm

Mail configuration - OpenKM Community 6.3.1

Post by ahussain » Sun Jun 12, 2016 8:06 am

Hello,

Kindly provide steps to do Email configuration for OpenKM Community 6.3.1

Thank you.

jllort
Moderator
Moderator
Posts: 9380
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail configuration - OpenKM Community 6.3.1

Post by jllort » Sun Jun 12, 2016 3:34 pm


ahussain
Junior Boarder
Junior Boarder
Posts: 20
Joined: Thu Jun 02, 2016 12:13 pm

Re: Mail configuration - OpenKM Community 6.3.1

Post by ahussain » Mon Jun 13, 2016 4:48 am

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.

jllort
Moderator
Moderator
Posts: 9380
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail configuration - OpenKM Community 6.3.1

Post by jllort » Wed Jun 15, 2016 6:55 am

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 ).

ahussain
Junior Boarder
Junior Boarder
Posts: 20
Joined: Thu Jun 02, 2016 12:13 pm

Re: Mail configuration - OpenKM Community 6.3.1

Post by ahussain » Wed Jun 15, 2016 7:06 am

could you please provide the file name/path on which the configuration change need to be performed?

jllort
Moderator
Moderator
Posts: 9380
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail configuration - OpenKM Community 6.3.1

Post by jllort » Thu Jun 16, 2016 4:32 pm

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.

jasonjason1207
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Tue Feb 28, 2017 11:54 am

Re: Mail configuration - OpenKM Community 6.3.1

Post by jasonjason1207 » Tue Feb 28, 2017 11:58 am

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.

jllort
Moderator
Moderator
Posts: 9380
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail configuration - OpenKM Community 6.3.1

Post by jllort » Wed Mar 01, 2017 7:12 pm

Take in mind you are into xml, for example if you use in the password the character & you must protect it ( escape ) from XML point of view and replace by &

Look at google for "XML escape characters"
http://stackoverflow.com/questions/1091 ... -documents

Post Reply

Who is online

Users browsing this forum: alexkcy and 1 guest