FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Help!!! problem with mail notification (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 1
TOPIC: Help!!! problem with mail notification
#899
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 0  
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!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#900
jllort (Admin)
Admin
Posts: 363
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 5  
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.
 
Report to moderator   Logged Logged  
 
Be open my friend
  The administrator has disabled public write access.
#901
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 0  
Hello, thanks for the kind and quick reply!

I just redone the procedure with a clean mail-service.xml

1.create 'emails.properties' in $JBOSS_HOME/server/default/conf, with
//code//
user1=hb.com.cn@gmail.com
user2=hb.com.cn@gmail.com
user3=hb.com.cn@gmail.com
////////

2.modify 'mail.service.xml' $JBOSS_HOME/server/default/deploy, with
//code//
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
<server>

<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->

<mbean code="org.jboss.mail.MailService"
name="jbosservice=mail/OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">openkmfan</attribute>
<attribute name="Password">XXXXXX</attribute>
<attribute name="Configuration">
<!-- A test 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="pop3.nosuchhost.nosuchdomain.com"/>

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

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

<!-- Change to the address mail will be from -->
<property name="mail.from" value="openkmfan@gmail.com"/>

<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
<depends>jbosservice=Naming</depends>
</mbean>

</server>
////////
'132.205.XXX.XXX' is the ip of my PC which is using windows XP OS

3.add server URL must be inserted at OpenKM.cfg:
//code//
application.url=http://132.205.XXX.XXX:8080/OpenKM/es.git.openkm.frontend.Main/index.jsp
////////

The above steps are what I have done in order to sent the email(hb.com.cn@gmail.com) of user1, user2, user3 a notification with openkmfan@gmail.com

but when I upload a new file and sent notification to user1 and user, I got such error:
//error//
14:44:43,750 ERROR [STDERR] javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
for user1@mailserver.com
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
for user2@mailserver.com
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
for user2@mailserver.com
14:44:43,750 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTr
ansport.java:1196)
14:44:43,750 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.sendMessage(S
MTPTransport.java:584)
14:44:43,750 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:169
)
14:44:43,750 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:98)
14:44:43,750 ERROR [STDERR] at es.git.openkm.util.Mail.send(Mail.java:88)
14:44:43,750 ERROR [STDERR] at es.git.openkm.module.direct.DirectNotificatio
nModule.notify(DirectNotificationModule.java:279)
14:44:43,750 ERROR [STDERR] at es.git.openkm.api.OKMNotification.notify(OKMN
otification.java:87)
14:44:43,750 ERROR [STDERR] at es.git.openkm.frontend.server.OKMFileUploadSe
rvlet.doPost(OKMFileUploadServlet.java:139)
14:44:43,750 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:710)
14:44:43,750 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:803)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:290)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
14:44:43,750 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:230)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:175)
14:44:43,750 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:179)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:524)
14:44:43,750 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:84)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:127)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:102)
14:44:43,750 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnec
tionValve.invoke(CachedConnectionValve.java:157)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:109)
14:44:43,750 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:262)
14:44:43,750 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:844)
14:44:43,750 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.process(Http11Protocol.java:583)
14:44:43,750 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker
.run(JIoEndpoint.java:446)
14:44:43,750 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
14:44:43,750 ERROR [STDERR] Caused by: com.sun.mail.smtp.SMTPAddressFailedExcept
ion: 550 5.7.1 Unable to relay for user1@mailserver.com
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
for user2@mailserver.com
14:44:43,750 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTr
ansport.java:1047)
14:44:43,750 ERROR [STDERR] ... 28 more
14:44:43,750 ERROR [STDERR] Caused by: com.sun.mail.smtp.SMTPAddressFailedExcept
ion: 550 5.7.1 Unable to relay for user2@mailserver.com
14:44:43,750 ERROR [STDERR] ... 29 more
14:44:43,890 INFO [CacheManager] resizeAll size=7
//////

the attachment is the server log
File Attachment:
File Name: server_log.zip
File Size: 70644


Thanks a lot to all!!!
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/28 21:31 By hbcomcn.
  The administrator has disabled public write access.
#904
jllort (Admin)
Admin
Posts: 363
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 5  
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
 
Report to moderator   Logged Logged  
 
Be open my friend
  The administrator has disabled public write access.
#909
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 0  
Hello jllort
thanks for your reply!

the problem is fixed, although still not working well.
I had modified the file 'openkm-emails.properties' in folder 'server\default\conf\props' with the users email, but as mentioned in the FAQ I have to create the file 'emails.properties' in folder 'server\default\conf' which won't work.

Now the problem I have is when I deploy, everything looks well, when I sent mail notificaiton, the error occurs:
//error//
12:02:20,671 ERROR [STDERR] javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
for hb.com.cn@gmail.com
12:02:20,671 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTr
ansport.java:1196)
12:02:20,671 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.sendMessage(S
MTPTransport.java:584)
12:02:20,671 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:169
)
12:02:20,671 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:98)
12:02:20,671 ERROR [STDERR] at es.git.openkm.util.Mail.send(Mail.java:88)
12:02:20,671 ERROR [STDERR] at es.git.openkm.module.direct.DirectNotificatio
nModule.notify(DirectNotificationModule.java:279)
12:02:20,671 ERROR [STDERR] at es.git.openkm.api.OKMNotification.notify(OKMN
otification.java:87)
12:02:20,671 ERROR [STDERR] at es.git.openkm.frontend.server.OKMFileUploadSe
rvlet.doPost(OKMFileUploadServlet.java:139)
12:02:20,671 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:710)
12:02:20,671 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:803)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:290)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
12:02:20,671 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:230)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:175)
12:02:20,671 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:179)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:524)
12:02:20,671 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:84)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:127)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:102)
12:02:20,671 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnec
tionValve.invoke(CachedConnectionValve.java:157)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:109)
12:02:20,671 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:262)
12:02:20,671 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:844)
12:02:20,671 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.process(Http11Protocol.java:583)
12:02:20,687 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker
.run(JIoEndpoint.java:446)
12:02:20,687 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
12:02:20,687 ERROR [STDERR] Caused by: com.sun.mail.smtp.SMTPAddressFailedExcept
ion: 550 5.7.1 Unable to relay for hb.com.cn@gmail.com
12:02:20,687 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTr
ansport.java:1047)
12:02:20,687 ERROR [STDERR] ... 28 more
/////////

here is the server log:
File Attachment:
File Name: server-d1830d3c419bfa993b5a48133ba7d1f8.zip
File Size: 70588
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/30 19:25 By hbcomcn.
  The administrator has disabled public write access.
#910
jllort (Admin)
Admin
Posts: 363
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 5 Months, 1 Week ago Karma: 5  
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 ?
 
Report to moderator   Logged Logged  
 
Be open my friend
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop