Page 1 of 1

How to setup mail notification for openKM 3.0?

PostPosted:Mon Sep 14, 2009 9:02 am
by installopenkm
Hi,

These days I install openKM 3.0 community version on my windows XP PC, it works well while I can access \"http://localhost:8080/OpenKM\" as admin.

Further I try to setup mail notification for OpenKM, I search hours in web or this forum for \"MAIL\" topics but CANNOT find much info.

Would ADMIN4forum CAN give us help and tell us (((How to setup mail notification for openKM 3.0?))) a little bit details, I think LOTS OF USER of openKM like to see these steps of mail!

thanks a lot!

a normal openKM user

Re:How to setup mail notification for openKM 3.0?

PostPosted:Mon Sep 14, 2009 2:27 pm
by Shala
Hello Sir/Madam,

After a week of hard working I just managed mail notification.
I had the same problem as you and now it is working.

This is the full code:
mail-service.xml should look like this:

<!-- OpenKM -->
<mbean code=\"org.jboss.mail.MailService\" name=\"jboss:service=mail/OpenKM\">
<attribute name=\"JNDIName\">java:/mail/OpenKM</attribute>
<attribute name=\"User\">user</attribute>
<attribute name=\"Password\">password</attribute>
<attribute name=\"Configuration\">
<configuration>
<!-- Change to your mail server prototocol -->
<property name=\"mail.store.protocol\" value=\"pop3\"/>
<property name=\"mail.transport.protocol\" value=\"smtp\"/>

<!-- Change to the user who will receive mail -->
<property name=\"mail.user\" value=\"nobody\"/>

<!-- Change to the mail server -->
<property name=\"mail.pop3.host\" value=\"mail.hosting.com\"/>

<!-- Change to the SMTP gateway server -->
<property name=\"mail.smtp.host\" value=\"mail.hosting.com\"/>

<!-- The mail server port -->
<property name=\"mail.smtp.port\" value=\"25\"/>

<!-- Change to the address mail will be from -->
<property name=\"mail.from\" value=\"NoReply@es.buurme.com\"/>

<!-- Enable debugging output from the javamail classes -->
<property name=\"mail.debug\" value=\"true\"/>
</configuration>
<depends>jboss:service=Naming</depends>
</attribute>
</mbean>

* mail.hosting.com this is my hosting mail of my company, take care of this, if you make a mistake it will not work.
* buurme.com is our website

Other changes in emails.properties
shala=Shala@buurme.com shala is my user name and Shala@buurme.com is my e-mail address.

OpenKM.cfg should look like:

# Default configuration values
repository.config=repository.xml
repository.home=repository
system.user=system
default.user.role=UserRol
default.admin.role=AdminRol
principal.adapter=es.git.openkm.core.UsersRolesPrincipalAdapter
max.file.size=100
max.search.results=25
application.url=http://your_host:8080/OpenKM/es.git.openkm.frontend.Main/index.jsp

This is working well for me and I hoppe it will work for you too. I am using OpenKM 2.0 - OpenKM 3.0 did not work for me.

All the best.
Shala

Re:How to setup mail notification for openKM 3.0?

PostPosted:Mon Sep 14, 2009 6:41 pm
by jllort
It might run with OpenKM 3.0. which error you\'ve got there.

You must consider migrating between versions, because nearly we\'ll release the 4.0 versionand you\'ll need to make two migrations one to upgrade to 3.0 and other to 4.0