Page 1 of 1
Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Mon Nov 14, 2011 6:23 am
by raths
Hi all
Can anyone give me the step by step instruction how to configure gmail for Open KM notification services ( such as for Cron job , Workflow etc...). The version which I am using is Version: 5.1.7 (build: 7085) . I read the documentation and it instructed me to change the $JBOSS_HOME/server/default/deploy/mail-service.xml file . But i don't know what values should i give for configuring G-mail for Open KM notification services . Could any one please help me on this ?
Regards
Raths
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Tue Nov 15, 2011 12:18 pm
by jllort
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Wed Oct 17, 2012 11:56 am
by macjaeger
Is there similar documentation how to setup email notifications for OpenKM 6.x with tomcat ?
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Wed Oct 17, 2012 6:17 pm
by jllort
No with tomcat is quite different, I have added the page on the wiki but still not added information, meanwhile you can try in your server.xml make this kind of changes
Code: Select all<Resource
name="mail/Session"
type="javax.mail.Session"
auth="Container"
mail.smtp.host="mydomain IP address"
mail.smtp.auth="true"
username="my email account username"
password="the email account password"
mail.user="my email account username"
mail.password="the email account password"
mail.port="25"
mail.transport.protocol="smtp"
mail.debug="true"/>
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Wed Oct 17, 2012 7:46 pm
by macjaeger
Thanks, I will try that!
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Thu Oct 18, 2012 5:58 pm
by jllort
Will be waiting your feedback
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Thu Oct 18, 2012 6:27 pm
by macjaeger
I didn't have the chance to test it today, daytime job is keeping me busy, kids doing the same at night... I hope I get to it tomorrow (night, i fear). But from a quick glance i think i might run into problems because gmail needs starttls? Probably i need to install some local MTA to route through.
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Thu Oct 18, 2012 9:22 pm
by jllort
well I think like jboss should be able to configure tls with xml ( only should be needed found correct properties, if exists ).
Take a look here:
http://mail-archives.apache.org/mod_mbo ... lcon.nl%3E
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Fri Oct 19, 2012 1:26 pm
by macjaeger
Thanks for the link, it almost worked at once. This is the config I put into server.xml:
Code: Select all <Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.user="<username>"
password="<password>"
mail.smtp.from="<sender email>"
mail.smtp.quitwait="false"
mail.smtp.starttls.enable="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
mail.debug="true"
/>
Notice the line >> mail.smtp.quitwait="false" <<, i added this because sometimes catalina got stuck during startup.
One problem left: the mails aren't encoded properly, e.g. german umlauts like ä, ö, ü turn into funny sequences of gibberish. To be more precise: the mail content obviously is utf-8 encoded, but thunderbird doesn't recognise it by itself as it does with almost any other email i got.
Re: Open KM - Gmail Confiuration Step by Step help needed
PostPosted:Fri Oct 19, 2012 8:38 pm
by jllort
That's I have completed with your post wiki information. I will try take a look on utf-8 characters why are not received correctly.