I have changed mail-services.xml
here is the modified file:
<?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:service=OpenKM\">
<attribute name=\"JNDIName\">java:/Mail</attribute>
<attribute name=\"User\">someuser</attribute>
<attribute name=\"Password\">somepaww</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=\"lkumili\"/>
<!-- Change to the mail server -->
<property name=\"mail.pop3.host\" value=\"mx1.osi-tech.com\"/>
<!-- Change to the SMTP gateway server -->
<property name=\"mail.smtp.host\" value=\"mx1.osi-tech.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=\"
lkumili@osi-tech.com\"/>
<!-- Enable debugging output from the javamail classes -->
<property name=\"mail.debug\" value=\"true\"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
and set the debug to true below is output:
19:59:38,274 INFO [STDOUT] DEBUG SMTP: trying to connect to host \"mx1.osi-tech.com\", port 25, isSSL false
19:59:39,118 INFO [STDOUT] 220 mx1.osi-tech.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 15 Jan 2009 19:45:04 +0530
19:59:39,118 INFO [STDOUT] DEBUG SMTP: connected to host \"mx1.osi-tech.com\", port: 25
19:59:39,134 INFO [STDOUT] EHLO lkumali
19:59:39,134 INFO [STDOUT] 250-MX1.OSI-TECH.COM HELLO MX1.OSI-TECH.COM [202.63.106.245] (MAY BE FORGED), PLEASED TO MEET YOU
250-ENHANCEDSTATUSCODES
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"ENHANCEDSTATUSCODES\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"SIZE\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"DSN\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"ETRN\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"AUTH\", arg \"DIGEST-MD5 CRAM-MD5 LOGIN PLAIN\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"DELIVERBY\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Found extension \"HELP\", arg \"\"
19:59:39,134 INFO [STDOUT] DEBUG SMTP: use8bit false
19:59:39,134 INFO [STDOUT] MAIL FROM:<
lkumili@osi-tech.com>
19:59:39,134 INFO [STDOUT] 250 2.1.0 <
lkumili@osi-tech.com>... Sender ok
19:59:39,134 INFO [STDOUT] RCPT TO:<
lkumili@osi-tech.com>
19:59:39,134 INFO [STDOUT] 250 2.1.5 <
lkumili@osi-tech.com>... Recipient ok
19:59:39,134 INFO [STDOUT] RCPT TO:<
lkumili@osi-tech.com>
19:59:39,134 INFO [STDOUT] 250 2.1.5 <
lkumili@osi-tech.com>... Recipient ok
19:59:39,134 INFO [STDOUT] DEBUG SMTP: Verified Addresses
19:59:39,134 INFO [STDOUT] DEBUG SMTP:
lkumili@osi-tech.com
19:59:39,134 INFO [STDOUT] DEBUG SMTP:
lkumili@osi-tech.com
19:59:39,134 INFO [STDOUT] DATA
19:59:39,134 INFO [STDOUT] 354 End data with <CR><LF>.<CR><LF>
19:59:39,149 INFO [STDOUT] Date: Thu, 15 Jan 2009 19:59:31 +0530 (GMT+05:30)
From:
lkumili@osi-tech.com
To:
lkumili@osi-tech.com,
lkumili@osi-tech.com
Message-ID: <
32088982.11232029778274.JavaMail.lkumili@osi-tech.com>
Subject: Centrilaw - CREATE - /okm:root/leela
MIME-Version: 1.0
Content-Type: text/html ; charset=UTF-8
Content-Transfer-Encoding: 7bit
charset: UTF-8
<html><body><b>Document: </b><a href=\"
http://localhost:8080/OpenKM/es.git.ope ... r/><b>User: </b>firm<br/><b>Event: </b>CREATE<br/><b>Comment: </b><br/></body></html>
.
19:59:39,446 INFO [STDOUT] 250 OK, Unacceptable content
19:59:39,446 INFO [STDOUT] QUIT
19:59:39,446 INFO [STDOUT] 221 2.0.0 mx1.osi-tech.com closing connection
Did not get any exception , at the same time mail was not sent to given mail id.couldnt know what the problem is?