• New OpenKM User

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #4701  by jllort
 
You're on truth there're two scenarios:
1- Openkm notification
2- User notification

Both users mail poll, in openkm notification case, the system ( core ) starts the mail notification process reason why is used default mail service "from" configuration param, in case some user makes a notification is used "user mail" to identify the origin of the mail notification, that's the reason why it appears the user mail in from when this user is the origin of the notification mail ( case uploading a file or executing notification from archive menu )
 #12953  by dvelev
 
Hello,
I configured the mail-service.xml, but I can not send email notification to the user of the system.
This information in server.log file also does not appear to me:
Code: Select all
9:07:43,743 INFO [STDOUT] DEBUG: getProvider () returning javax.mail.Provider [TRANSPORT, smtp, com.sun.mail.smtp.SMTPTransport, Sun Microsystems, Inc]
09:07:43,852 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
09:07:43,852 INFO [STDOUT] DEBUG SMTP: trying to connect to host "mail .*******. com", port 25, isSSL false
09:07:43,868 INFO [STDOUT] 220 ***.******.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Tue, 13 Apr 2010 09:07:44 -0500
09:07:43,868 INFO [STDOUT] DEBUG SMTP: connected to host "mail.******.com", port: 25
09:07:43,868 INFO [STDOUT] EHLO agratestvm
09:07:43,868 INFO [STDOUT] 250-agraexch.agraind.com Hello [10.0.2.44]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
......
sendmail is a mail server and is it on another computer on the LAN.
tested on Windows XP and Ubuntu 11.10

just tested in console:
Code: Select all
/Downloads/javamail-1.4.4/demo$ java msgshow -T imap -H .....
and working correctly, but still not connect OpenKM to e-mail server.

Thanks,
Daniel
 #12976  by jllort
 
It's not appearing and error ? because you've truncatted some debug information ... for what I'm seeing you've connect to server ... and then when tries sending mail ... the part of the log what we don't see what happens ? stops , some error ?
 #12987  by dvelev
 
Hello,
could not connect with SMTP server,
here is content of mail-service.xml and part of server.log:

mail-service.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
<server>
<mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
  <attribute name="JNDIName">java:/mail/OpenKM</attribute>
  <attribute name="User">user@domain.bg</attribute>
  <attribute name="Password">password</attribute>
  <attribute name="Configuration">
    <configuration>
	  <property name="mail.transport.protocol" value="smtp"/>
        <property name="mail.smtp.host" value="192.168.1.204"/>
        <property name="mail.smtp.port" value="25"/>
        <property name="mail.from" value="user@domain.bg"/>
        <property name="mail.debug" value="true"/>
 
      <!-- Enable debugging output from the javamail classes -->
      <property name="mail.debug" value="true"/>
    </configuration>
  </attribute>
  <depends>jboss:service=Naming</depends>
</mbean>
</server>
server.log
Code: Select all
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.SARDeployer] looking for nested deployments in : file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
2011-11-21 08:55:17,946 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@4b035d, cl=org.jboss.mx.loading.UnifiedClassLoader3@d210ab{ url=null ,addedOrder=0}
2011-11-21 08:55:17,946 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@4b035d, cl=org.jboss.mx.loading.UnifiedClassLoader3@d210ab{ url=null ,addedOrder=0}
2011-11-21 08:55:17,946 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@d210ab{ url=null ,addedOrder=0}
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=d210ab
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:service=OpenKM with code: org.jboss.mail.MailService
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceConfigurator] JNDIName set to java:/mail/OpenKM in jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceConfigurator] User set to user@domain.bg in jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceConfigurator] Password set to password in jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceConfigurator] Configuration set to [configuration: null] in jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceController] recording that jboss:service=OpenKM depends on jboss:service=Naming
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceConfigurator] considering <anonymous> with object name jboss:service=Naming
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceController] Creating service jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] Creating jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] Created jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss:service=OpenKM dependents are: []
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,946 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] Starting jboss:service=OpenKM
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.transport.protocol=smtp
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.smtp.host=192.168.1.204
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.smtp.port=25
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.from=user@domain.bg
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.debug=true
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] setting property mail.debug=true
2011-11-21 08:55:17,946 DEBUG [org.jboss.mail.MailService] Using properties: {mail.debug=true, mail.from=user@domain.bg, mail.smtp.port=25, mail.transport.protocol=smtp, mail.smtp.host=192.168.1.204}
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: JavaMail version 1.4.4
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: Tables of loaded providers
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
2011-11-21 08:55:17,961 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
2011-11-21 08:55:17,977 INFO  [org.jboss.mail.MailService] Mail Service bound to java:/mail/OpenKM
2011-11-21 08:55:17,977 DEBUG [org.jboss.mail.MailService] Started jboss:service=OpenKM
2011-11-21 08:55:17,977 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=OpenKM dependent components: []
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: mail-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml -> file:/C:/jboss-4.2.3.GA/server/default/deploy/mail-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-4.2.3.GA/server/default/deploy/monitoring-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss-4.2.3.GA/server/default/deploy/monitoring-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/C:/jboss-4.2.3.GA/server/default/deploy/monitoring-service.xml -> C:\jboss-4.2.3.GA\server\default\tmp\deploy\tmp4064430981001374054monitoring-service.xml
2011-11-21 08:55:17,977 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@1af33d6

But after sending notify to another user, a i can't see message in log for connect with smtp server.
Tested with local mail server (sendmail) and external mail server (GMail).
Тo clarify that it comes to notify to users the option from the menu File - Add document, checkbox "notify to users"

Thanks
 #12993  by jllort
 
With log server provided I can not see anything newer.

Start new post because this actually has no relation with initial post. I wan to see the complete error log, not the deployment log of mail-service.xml add it in new post talking about mail error on notification and indicate the OpenKM version too.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.