Page 1 of 1

Subscription not working.

PostPosted:Thu Jan 15, 2009 1:18 pm
by leela
Hi,

I have checked out latest source code from cvs of openkm.

While adding a document, i have checked notify the user and selected some user from the user.

The document is added but when i see the subcribed property in the properties tab it is displayed as no as well as mails are not sent to the subscribed users.

Let me know if any configuration need to done more.

Re:Subscription not working.

PostPosted:Thu Jan 15, 2009 2:39 pm
by leela
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?

Re:Subscription not working.

PostPosted:Thu Jan 15, 2009 3:35 pm
by jllort
Do you have some spam killer or similar ? You might talk with your system administratior about it, because seems you connect well to mail servide ( normal here is where major user have problems ), and not accepts the content -> it\'s estrange.

Only one suggestion, don\'t put real user and pass on forum ( I\'ve changed it for you ).