Page 1 of 1

Config mail MDaemon (Server offline) with openkm

Posted: Sat Dec 05, 2020 2:19 am
by duonghienkhanhdang
I have a LAN network and mail server (MDaemon)
I tried to configure mail and openkm CE 6.3.9 but failed.
Can anyone help me with this problem? Thank you very much.
Thank you everyone for watching!

Re: Config mail MDaemon (Server offline) with openkm

Posted: Sun Dec 06, 2020 3:32 pm
by jllort
Take a look at this section in the documentation https://docs.openkm.com/kcenter/view/ok ... -mail.html

Re: Config mail MDaemon (Server offline) with openkm

Posted: Mon Dec 07, 2020 12:30 am
by duonghienkhanhdang
Thanks for the reply.
I try to configure it like this

Code: Select all

<Resource name="mail/OpenKM" type="javax.mail.Session"
    mail.transport.protocol="smtp"
    mail.smtp.auth="true"
    mail.smtp.host="192.168.1.188"
    mail.smtp.user=" "
    password=" "
    mail.port="25"
    mail.debug="true"/>
192.168.1.188 is the ip of the PC running mdaemon.
but failed. can you guide me in more detail?

Re: Config mail MDaemon (Server offline) with openkm

Posted: Wed Dec 09, 2020 10:07 am
by jllort
If your email server does not require user and password, remove the attributes.

Re: Config mail MDaemon (Server offline) with openkm

Posted: Fri Dec 11, 2020 1:42 am
by duonghienkhanhdang
Thanks for reply!
I have configured but error
"501 5.5.2 Mailbox invalid"

Re: Config mail MDaemon (Server offline) with openkm

Posted: Sat Dec 12, 2020 9:36 am
by jllort
Check your mail configuration ( take a look at openkm.log -> there should be shown the complete stack trace )

Re: Config mail MDaemon (Server offline) with openkm

Posted: Mon Dec 14, 2020 3:04 am
by duonghienkhanhdang
Thanks for reply!
My openkm.log

Code: Select all

2020-12-14 09:58:14,043 [Update Info] [] INFO  com.openkm.core.UpdateInfo - *** UpdateInfo activated ***
2020-12-14 09:58:15,236 [Update Info] [] INFO  com.openkm.util.Update - checkVersion: 
2020-12-14 10:00:00,142 [Thread-21] [] INFO  com.openkm.core.UserMailImporter - *** User mail importer activated ***
2020-12-14 10:00:00,269 [Thread-21] [] INFO  com.openkm.util.MailUtils - ======= ======= 0 ======= =======
2020-12-14 10:00:00,269 [Thread-21] [] INFO  com.openkm.util.MailUtils - Folder: inbox
2020-12-14 10:00:00,276 [Thread-21] [] INFO  com.openkm.util.MailUtils - Subject: Welcome to the MDaemon email system for domain company.test
2020-12-14 10:00:00,276 [Thread-21] [] INFO  com.openkm.util.MailUtils - From: "MDaemon at company.test" <MDaemon@company.test>
2020-12-14 10:00:00,276 [Thread-21] [] INFO  com.openkm.util.MailUtils - Received: Fri Dec 11 08:20:13 ICT 2020
2020-12-14 10:00:00,277 [Thread-21] [] INFO  com.openkm.util.MailUtils - Sent: Fri Dec 11 08:20:13 ICT 2020
2020-12-14 10:00:00,293 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,293 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,296 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.DbSimpleAccessManager -> isGranted (DbSimpleAccessManager.java:67)
2020-12-14 10:00:00,296 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.SecurityHelper -> checkRead (SecurityHelper.java:98)
2020-12-14 10:00:00,297 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.dao.NodeFolderDAO -> findByPk (NodeFolderDAO.java:202)
2020-12-14 10:00:00,299 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.DbFolderModule -> create (DbFolderModule.java:84)
2020-12-14 10:00:00,299 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createSimple (OKMFolder.java:68)
2020-12-14 10:00:00,299 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createMissingFolders (OKMFolder.java:200)
2020-12-14 10:00:00,300 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:665)
2020-12-14 10:00:00,301 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:583)
2020-12-14 10:00:00,302 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> runAs (UserMailImporter.java:89)
2020-12-14 10:00:00,302 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> run (UserMailImporter.java:60)
2020-12-14 10:00:00,303 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.ExecutionUtils -> runScript (ExecutionUtils.java:106)
2020-12-14 10:00:00,303 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.Cron$RunnerBsh -> run (Cron.java:99)
2020-12-14 10:00:00,303 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,304 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,349 [Thread-21] [] WARN  com.openkm.util.MailUtils - null
java.lang.NullPointerException: null
	at com.openkm.module.db.DbFolderModule.create(DbFolderModule.java:101) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createSimple(OKMFolder.java:68) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createMissingFolders(OKMFolder.java:200) ~[classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:665) [classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:583) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.runAs(UserMailImporter.java:89) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.run(UserMailImporter.java:60) [classes/:6.3.9]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_271]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_271]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_271]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_271]
	at bsh.Reflect.invokeMethod(Reflect.java:166) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Reflect.invokeObjectMethod(Reflect.java:99) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:664) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:758) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:747) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at com.openkm.util.ExecutionUtils.runScript(ExecutionUtils.java:106) [classes/:6.3.9]
	at com.openkm.core.Cron$RunnerBsh.run(Cron.java:99) [classes/:6.3.9]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
2020-12-14 10:00:00,447 [Thread-21] [] INFO  com.openkm.util.MailUtils - ======= ======= 0 ======= =======
2020-12-14 10:00:00,448 [Thread-21] [] INFO  com.openkm.util.MailUtils - Folder: inbox
2020-12-14 10:00:00,451 [Thread-21] [] INFO  com.openkm.util.MailUtils - Subject: Welcome to the MDaemon email system for domain company.test
2020-12-14 10:00:00,451 [Thread-21] [] INFO  com.openkm.util.MailUtils - From: "MDaemon at company.test" <MDaemon@company.test>
2020-12-14 10:00:00,454 [Thread-21] [] INFO  com.openkm.util.MailUtils - Received: Fri Dec 04 13:21:08 ICT 2020
2020-12-14 10:00:00,455 [Thread-21] [] INFO  com.openkm.util.MailUtils - Sent: Fri Dec 04 13:21:07 ICT 2020
2020-12-14 10:00:00,465 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,466 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,468 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.DbSimpleAccessManager -> isGranted (DbSimpleAccessManager.java:67)
2020-12-14 10:00:00,468 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.SecurityHelper -> checkRead (SecurityHelper.java:98)
2020-12-14 10:00:00,469 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.dao.NodeFolderDAO -> findByPk (NodeFolderDAO.java:202)
2020-12-14 10:00:00,469 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.DbFolderModule -> create (DbFolderModule.java:84)
2020-12-14 10:00:00,470 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createSimple (OKMFolder.java:68)
2020-12-14 10:00:00,471 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createMissingFolders (OKMFolder.java:200)
2020-12-14 10:00:00,471 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:665)
2020-12-14 10:00:00,472 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:583)
2020-12-14 10:00:00,472 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> runAs (UserMailImporter.java:89)
2020-12-14 10:00:00,473 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> run (UserMailImporter.java:60)
2020-12-14 10:00:00,475 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.ExecutionUtils -> runScript (ExecutionUtils.java:106)
2020-12-14 10:00:00,476 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.Cron$RunnerBsh -> run (Cron.java:99)
2020-12-14 10:00:00,478 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,478 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,482 [Thread-21] [] WARN  com.openkm.util.MailUtils - null
java.lang.NullPointerException: null
	at com.openkm.module.db.DbFolderModule.create(DbFolderModule.java:101) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createSimple(OKMFolder.java:68) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createMissingFolders(OKMFolder.java:200) ~[classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:665) [classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:583) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.runAs(UserMailImporter.java:89) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.run(UserMailImporter.java:60) [classes/:6.3.9]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_271]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_271]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_271]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_271]
	at bsh.Reflect.invokeMethod(Reflect.java:166) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Reflect.invokeObjectMethod(Reflect.java:99) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:664) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:758) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:747) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at com.openkm.util.ExecutionUtils.runScript(ExecutionUtils.java:106) [classes/:6.3.9]
	at com.openkm.core.Cron$RunnerBsh.run(Cron.java:99) [classes/:6.3.9]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
2020-12-14 10:00:00,584 [Thread-21] [] INFO  com.openkm.util.MailUtils - ======= ======= 0 ======= =======
2020-12-14 10:00:00,584 [Thread-21] [] INFO  com.openkm.util.MailUtils - Folder: inbox
2020-12-14 10:00:00,587 [Thread-21] [] INFO  com.openkm.util.MailUtils - Subject: Welcome to the MDaemon email system for domain company.test
2020-12-14 10:00:00,588 [Thread-21] [] INFO  com.openkm.util.MailUtils - From: "MDaemon at company.test" <MDaemon@company.test>
2020-12-14 10:00:00,588 [Thread-21] [] INFO  com.openkm.util.MailUtils - Received: Fri Dec 04 13:21:29 ICT 2020
2020-12-14 10:00:00,588 [Thread-21] [] INFO  com.openkm.util.MailUtils - Sent: Fri Dec 04 13:21:28 ICT 2020
2020-12-14 10:00:00,597 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,597 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,598 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.DbSimpleAccessManager -> isGranted (DbSimpleAccessManager.java:67)
2020-12-14 10:00:00,598 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.stuff.SecurityHelper -> checkRead (SecurityHelper.java:98)
2020-12-14 10:00:00,598 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.dao.NodeFolderDAO -> findByPk (NodeFolderDAO.java:202)
2020-12-14 10:00:00,599 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.module.db.DbFolderModule -> create (DbFolderModule.java:84)
2020-12-14 10:00:00,599 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createSimple (OKMFolder.java:68)
2020-12-14 10:00:00,601 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.api.OKMFolder -> createMissingFolders (OKMFolder.java:200)
2020-12-14 10:00:00,602 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:665)
2020-12-14 10:00:00,602 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.MailUtils -> importMessages (MailUtils.java:583)
2020-12-14 10:00:00,603 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> runAs (UserMailImporter.java:89)
2020-12-14 10:00:00,603 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.UserMailImporter -> run (UserMailImporter.java:60)
2020-12-14 10:00:00,604 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.util.ExecutionUtils -> runScript (ExecutionUtils.java:106)
2020-12-14 10:00:00,604 [Thread-21] [] WARN  c.o.m.db.stuff.DbSimpleAccessManager - com.openkm.core.Cron$RunnerBsh -> run (Cron.java:99)
2020-12-14 10:00:00,604 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,604 [Thread-21] [] INFO  c.o.m.db.stuff.DbSimpleAccessManager - ***************************
2020-12-14 10:00:00,608 [Thread-21] [] WARN  com.openkm.util.MailUtils - null
java.lang.NullPointerException: null
	at com.openkm.module.db.DbFolderModule.create(DbFolderModule.java:101) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createSimple(OKMFolder.java:68) ~[classes/:6.3.9]
	at com.openkm.api.OKMFolder.createMissingFolders(OKMFolder.java:200) ~[classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:665) [classes/:6.3.9]
	at com.openkm.util.MailUtils.importMessages(MailUtils.java:583) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.runAs(UserMailImporter.java:89) [classes/:6.3.9]
	at com.openkm.core.UserMailImporter.run(UserMailImporter.java:60) [classes/:6.3.9]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_271]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_271]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_271]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_271]
	at bsh.Reflect.invokeMethod(Reflect.java:166) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Reflect.invokeObjectMethod(Reflect.java:99) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:664) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:758) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at bsh.Interpreter.eval(Interpreter.java:747) [beanshell2-2.1.8.jar:2.1.8 2014-02-20 03:56:17]
	at com.openkm.util.ExecutionUtils.runScript(ExecutionUtils.java:106) [classes/:6.3.9]
	at com.openkm.core.Cron$RunnerBsh.run(Cron.java:99) [classes/:6.3.9]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
Can you help me config it? thank you very much!

Re: Config mail MDaemon (Server offline) with openkm

Posted: Sun Dec 20, 2020 9:13 am
by jllort
Check if you have set some destination folder in the configuration what does not longer exist.

Re: Config mail MDaemon (Server offline) with openkm

Posted: Sun Dec 20, 2020 9:21 am
by duonghienkhanhdang
jllort wrote: Sun Dec 20, 2020 9:13 am Check if you have set some destination folder in the configuration what does not longer exist.
Thanks for reply!
Can you configure it for me using ultraviewer 6.2? Thank you very mouch!

Re: Config mail MDaemon (Server offline) with openkm

Posted: Mon Dec 21, 2020 3:25 pm
by jllort
Should check and configure yourself.