Page 1 of 1
					
				Mail configuration - OpenKM Community 6.3.1
				PostPosted:Sun Jun 12, 2016 8:06 am
				by ahussain
				Hello,
Kindly provide steps to do Email configuration for OpenKM Community 6.3.1
Thank you.
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Sun Jun 12, 2016 3:34 pm
				by jllort
				
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Mon Jun 13, 2016 4:48 am
				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 allapplication.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.
 
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Wed Jun 15, 2016 6:55 am
				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 ).
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Wed Jun 15, 2016 7:06 am
				by ahussain
				could you please provide the file name/path on which the configuration change need to be performed?
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Thu Jun 16, 2016 4:32 pm
				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.
 
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Tue Feb 28, 2017 11:58 am
				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.
 
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Wed Mar 01, 2017 7:12 pm
				by jllort
				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 
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Sun Aug 04, 2019 2:52 am
				by Sentry
				Hello 
   I had  configuration the email  success for  smtp protocol .
  But  how to configuration  the   Exchange protocol ?
 Thanks
			 
			
					
				Re: Mail configuration - OpenKM Community 6.3.1
				PostPosted:Tue Aug 06, 2019 9:23 pm
				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.