Page 2 of 3

Re:Help!!! problem with mail notification

PostPosted:Mon Jul 21, 2008 8:27 pm
by hbcomcn
==

Re:Help!!! problem with mail notification

PostPosted:Tue Jul 22, 2008 12:28 am
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.

Re:Help!!! problem with mail notification

PostPosted:Tue Jul 22, 2008 5:31 am
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

Re:Help!!! problem with mail notification

PostPosted:Mon Jul 28, 2008 1:39 pm
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!

Re:Help!!! problem with mail notification

PostPosted:Mon Jul 28, 2008 4:01 pm
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.

Re:Help!!! problem with mail notification

PostPosted:Mon Jul 28, 2008 7:20 pm
by hbcomcn
==

Re:Help!!! problem with mail notification

PostPosted:Tue Jul 29, 2008 5:38 am
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

Re:Help!!! problem with mail notification

PostPosted:Wed Jul 30, 2008 5:22 pm
by hbcomcn
==

Re:Help!!! problem with mail notification

PostPosted:Thu Jul 31, 2008 5:24 am
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 ?

Re:Help!!! problem with mail notification

PostPosted:Thu Jul 31, 2008 1:09 pm
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!

Re:Help!!! problem with mail notification

PostPosted:Mon Aug 04, 2008 3:48 am
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 :)

Re:Help!!! problem with mail notification

PostPosted:Mon Aug 04, 2008 3:49 am
by hbcomcn
Any help?
Thanks!!!

Re:Help!!! problem with mail notification

PostPosted:Mon Aug 04, 2008 6:02 am
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.

Re:Help!!! problem with mail notification

PostPosted:Mon Aug 04, 2008 1:50 pm
by hbcomcn
==

Re:Help!!! problem with mail notification

PostPosted:Mon Aug 04, 2008 2:21 pm
by hbcomcn
==