Page 1 of 1

ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

PostPosted:Thu Jan 04, 2018 4:34 pm
by gennari
Hi there,
I am using OpenKM 6.3.4 with Active Directory authentication.

I set email parameters in this manner:
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
          mail.transport.protocol="smtp" mail.smtp.auth="true"
          mail.user="admin@xxxxxx.it"
          mail.smtp.host="mail.diakont.it" mail.smtp.user="admin@xxxxxxx.it"
          password="xxxxxxx" mail.port="25" mail.debug="true"/>
I successfully tested this configuration with Check Email utility, but when OpenKM try to send notification to users, I get this error:
Code: Select all
ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

Email address is in mail attribute of Active Directory user, and I set principal.ldap.mail.attribute=mail.


Can you help me please?


Moreover, where can I find email logs?

Thanks in advance.

Genna

Re: ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

PostPosted:Fri Jan 05, 2018 3:01 pm
by jllort
The message is talking about the user has not mail address, you should take a look at ldap parameters to get the mail address, usually something like it:
Code: Select all
principal.ldap.mail.attribute=mail
principal.ldap.mail.search.base=DC=company,DC=com
principal.ldap.mail.search.filter=(&(objectClass=person)(sAMAccountName={0}))
Consider read and understanding what is does https://docs.openkm.com/kcenter/view/ok ... roles.html

Re: ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

PostPosted:Fri Jan 05, 2018 3:52 pm
by gennari
Thank you,
I fixet it. The problem was in principal.adapter settings.

I have let it to database adapter.

I am sorry for my supid question.


Bye.

Genna