• ==

  • 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.
 #874  by tidus2728
 
Hi hbcomcn,

Can you restart OpenKM then try to use email notification? Then if the error still occurs, please send the log file immediately after the error. I was not able to see if your mail service has been bound. we need to check whole log to see the cause of the error.

Thanks.
 #875  by jllort
 
Seems there\'s some problem on mail-service.xml file, read the error \"(javax.management.MalformedObjectNameException: Domain part must be speci
fied)\"

Put the password attibute, you delete it. If error persist or you don\'t detect where is it I recomend you delete all file and start with a new clean file mail-service.xml

I\'ll attach one [file name=mail_service.zip size=681]http://www.openkm.com/images/fbfiles/fi ... ervice.zip[/file] on this post
 #899  by hbcomcn
 
Hi jllort

I am not sure what you mean, you mean I restart OpenKM with the original mail-service.xml? but the email notification is not included there.
thanks!
 #900  by jllort
 
I think there\'s some character or something has gone wrong when you\'ve modified mail-service.xml, I\'ll suggest you overwrite with the original file, that I\'ve attached on the last post, and return to change it other time with a fresh mail-service.xml ( because on what you\'ve posted on forum I can\'t see the error, but when jboss says it\'s something wrong, on that case we must believe it, an is logging some malformed object name -> javax.management.MalformedObjectNameException ).

When you change this file it not needed to restar jboss, when you save jboss loads well.
 #904  by jllort
 
It\'s something strange, because on file emails.properties you\'ve written some mail address that not are what is trying to sendint with mailservice.com domain. Jboss is logging that can\'t not send mail to mailservice.com -> seems mail-service.xml configuration is good, now is the error comes from user mail.

Restart jboss to solve some possible cache problems with properties mail, and tell me if it solves it. I could no understand why is converting hb.com.cn@gmail.com to user1@mailserver.com
 #910  by jllort
 
Could you try to send to other mail address ?

For any reason seems your mail server don\'t like this mail address hb.com.cn@gmail.com, really exist ?
 #913  by hbcomcn
 
Hello

acctually I had used another email-address, but it has the same problem,
and is the error because of the spam filter?
Thanks!
 #940  by hbcomcn
 
Hello

I tried your config file to send notification to email account, but still doesn\'t work, could you give me some more detail information?
Thanks!
My thread is: "Help!!! problem with mail notification"

hbcomcn
skowit wrote:Hi.
If you want to use smtp.gmail.com, Gmail use TLS authentication.
Try to edit mail-service.xml :

<mbean code="org.jboss.mail.MailService"
name="jbosservice=mail/OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">your-mail@gmail.com</attribute>
<attribute name="Password">your-password</attribute>
<attribute name="Configuration">
<configuration>
<property name="mail.transport.protocol" value="smtp"/>
<property name="mail.smtp.host" value="smtp.gmail.com"/>
<property name="mail.smtp.port" value="587"/>
<property name="mail.smtp.starttls.enable" value="true"/>
<property name="mail.smtp.auth" value="true"/>
<property name="mail.from" value="your-mail@gmail.com"/>
<property name="mail.debug" value="false"/>
</configuration>
</attribute>

I use this configuration,It\'s work :)
 #942  by tidus2728
 
Hi hbcomcn,

I got lost in all the replies. Could you post the contents of these so that we can check them thoroughly:

1. {JBOSS_HOME}\\OpenKM.cfg
2. {JBOSS_HOME}\\server\\default\\conf\\props\\openkm-emails.properties
3. {JBOSS_HOME}\\server\\default\\deploy\\mail-service.xml

Then if possible, a fresh server log from restart of OpenKM indicating the error.

Thanks.

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.