• mail config stopping server from starting

  • 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.
 #29921  by gwaitsi
 
Hi, using the config as provided on the wiki/documention page i.e. below
Code: Select all
<Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
    mail.transport.protocol="smtp"
    mail.smtp.auth="true"
    mail.smtp.host="smtp.gmail.com"
    mail.smtp.port="465"
    mail.user="<username>"
    mail.password="<password>"
    mail.smtp.from="<sender email>"
    mail.smtp.quitwait="false"
    mail.smtp.starttls.enable="true"
    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
    mail.debug="true"/>
i'm getting the below errors, preventing the server from starting.
Code: Select all
2014-09-15 14:57:36,416 [main] WARN  org.apache.catalina.startup.Catalina- Catalina.start using conf/server.xml: The value of attribute "mail.user" associated with an element type "null" must not contain the '<' character.
2014-09-15 14:57:36,416 [main] FATAL org.apache.catalina.startup.Catalina- Cannot start server. Server instance is not configured.
any ideas please.
 #29981  by gwaitsi
 
appreciate what you are saying catscratch, but according to the docs, it is supposed to be able to use the mail based on the individual user loggedin. hence the desire to use a variable and not a hard coded address.

Therefore i really need to solve the issue of using variables.

cheers
 #29983  by Catscratch
 
No, you can't use variables. Where should they come from? You have to specify ONE user account which is used for mail transfer. It is NOT possible to insert some kind of variables to use the mail account of each openkm user therefor. This is not how tomcat configuration works.

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.