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="jboss

ervice=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>jboss

ervice=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
Thanks a lot to all!!!