kopano-dagent error 80040111
-
That is a good question, I think qmail.
-
Hello,
im a bit confused about:
/usr/sbin/kopano-dagent -q USERNAME ; if [ 0 -ne 0 ] ; then .....
why you using an if-statement that will never happen? (static “0” is always “0”) if you want to read the exit-code, use:
/usr/sbin/kopano-dagent -q USERNAME ; if [ $? -ne 0 ] ; then ...
about the error, i’m with @jengelh, seems to be permission related - incrase logging for a short periode (otherwise your logs will get flooded) and report back.
btw for better readability use code tags ``` before and after the code-block - thanks
coffee_is_life
-
Hello @Coffee_is_life I use the code tags.
I tested in Firefox, Chrome and Edge, looks good.the exit code is for the original qmail mailfolder. and you are right, I must use $?
Here is the new logging:
Mon Apr 23 09:50:10 2018: [notice ] Coredumps are disabled via configuration file. Mon Apr 23 09:50:10 2018: [info ] Maximum LMTP threads set to 20 Mon Apr 23 09:50:10 2018: [info ] Listening on port 2003 for LMTP Mon Apr 23 09:50:10 2018: [info ] [12574] Logger process started on pid 12575 Mon Apr 23 09:50:10 2018: [debug ] [12574] StatsClient binding socket Mon Apr 23 09:50:10 2018: [debug ] [12574] StatsClient bound socket to /tmp/.49163af7af82384.sock Mon Apr 23 09:50:10 2018: [debug ] [12574] StatsClient thread started Mon Apr 23 09:50:10 2018: [=======] [12574] Starting kopano-dagent version 8.5.8.2 (pid 12574) (LMTP mode) Mon Apr 23 09:50:10 2018: [debug ] [12574] Submit thread started Mon Apr 23 09:50:42 2018: [error ] WARNING: setrlimit(RLIMIT_NOFILE, 8192) failed, you will only be able to connect up to 1024 sockets. Either start the process as root, or increase user limits for open file descriptors (Operation not permitted) Mon Apr 23 09:50:42 2018: [notice ] Coredumps are disabled via configuration file. Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient binding socket Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient bound socket to /tmp/.3fe95d41cd9787d.sock Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient thread started Mon Apr 23 09:50:42 2018: [12664] [debug ] PYTHONPATH = /usr/share/kopano-dagent/python Mon Apr 23 09:50:42 2018: [12664] [debug ] Submit thread started Mon Apr 23 09:50:42 2018: [12664] [info ] * Loading plugins started Mon Apr 23 09:50:42 2018: [12664] [info ] ! Plugins directory "/var/lib/kopano/dagent/plugins" does not exist.Plugins not loaded. Mon Apr 23 09:50:42 2018: [12664] [error ] virtual HRESULT M4LMsgServiceAdmin::ConfigureMsgService(const MAPIUID*, ULONG_PTR, ULONG, ULONG, const SPropValue*): MSGServiceEntry failed: logon failed (80040111) Mon Apr 23 09:50:42 2018: [12664] [crit ] CreateProfileTemp(): ConfigureMsgService failed 80040111: logon failed Mon Apr 23 09:50:42 2018: [12664] [warning] CreateProfileTemp failed: 80040111: logon failed Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Kopano Directory Service" Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Private Folders" Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Public Folders" Mon Apr 23 09:50:42 2018: [12664] [notice ] Resolved recipient yythoss as user yythoss Mon Apr 23 09:50:42 2018: [12664] [info ] Mail will be delivered in Inbox Mon Apr 23 09:50:42 2018: [12664] [debug ] Trying to parse alternative multipart 1 of mail body Mon Apr 23 09:50:42 2018: [12664] [debug ] HTML4 meta tag found: charset="text/html; charset=utf-8" Mon Apr 23 09:50:42 2018: [12664] [debug ] HTML charset adjusted to "utf-8" Mon Apr 23 09:50:42 2018: [12664] [debug ] renovate_encoding: reading data using charset "utf-8" succeeded. Mon Apr 23 09:50:42 2018: [12664] [info ] * PostConverting processing started Mon Apr 23 09:50:42 2018: [12664] [info ] * PostConverting processing done Mon Apr 23 09:50:42 2018: [12664] [info ] * PreDelivery processing started Mon Apr 23 09:50:42 2018: [12664] [info ] * PreDelivery processing done Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Kopano Directory Service" Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Private Folders" Mon Apr 23 09:50:42 2018: [12664] [debug ] Initializing provider "Public Folders" Mon Apr 23 09:50:42 2018: [12664] [info ] * PreRuleProcess processing started Mon Apr 23 09:50:42 2018: [12664] [info ] * PreRuleProcess processing done Mon Apr 23 09:50:42 2018: [12664] [debug ] Processing rule Delegate Meetingrequest service for yythoss Mon Apr 23 09:50:42 2018: [12664] [info ] Rule Delegate Meetingrequest service doesn't match: 0x8004010f Mon Apr 23 09:50:42 2018: [12664] [debug ] Target user has OOF inactive Mon Apr 23 09:50:42 2018: [12664] [info ] * PostDelivery processing started Mon Apr 23 09:50:42 2018: [12664] [info ] * PostDelivery processing done Mon Apr 23 09:50:42 2018: [12664] [info ] * SendNewMailNotify processing started Mon Apr 23 09:50:42 2018: [12664] [info ] * SendNewMailNotify processing done Mon Apr 23 09:50:42 2018: [12664] [debug ] Send 'New Mail' notification Mon Apr 23 09:50:42 2018: [12664] [info ] Delivered message to "yythoss", Subject: "Test", Message-Id: <kcim.5add9042.312a.19d963290b182d3e@lserver.swt-online.de>, size 8300 Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient terminating Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient submit int failed: No such file or directory Mon Apr 23 09:50:42 2018: [12664] [debug ] Previous message logged 10 times Mon Apr 23 09:50:42 2018: [12664] [debug ] StatsClient terminated
The directory /var/lib/kopano/dagent/plugins exists.
-
now i see the code-tags, wasnt loaded in my browser - srry :)
what permissions are set on /var/lib/kopano/dagent and […]/plugins?
mine are 750 kopano:kopanoi had a strange behaviour with permissions when run_as_user/group was commented.
now my config isrun_as_user = run_as_group =
(without setting a user/group)
since then this problem was gone
coffee_is_life
-
This are the rights:
[root@server users]# ls -l /var/lib/kopano/ insgesamt 20 drwx------ 2 kopano kopano 4096 19. Apr 23:58 attachments drwxr-x--- 2 kopano kopano 4096 20. Apr 12:03 autorespond drwxr-x--- 3 kopano kopano 4096 20. Apr 12:03 dagent drwxr-x--- 16 kopano kopano 4096 20. Apr 12:03 search drwxr-x--- 3 kopano kopano 4096 20. Apr 12:03 spooler [root@server users]#
The plugin directory:
[root@server users]# ls -l /var/lib/kopano/dagent insgesamt 4 drwxr-x--- 2 kopano kopano 4096 20. Apr 12:03 plugins [root@server users]#
I check this (run_as_user/group )
-
Same problem with this config:
# run as specific user in LMTP mode. # make sure this user is listed in local_admin_users in your storage server config # or use SSL connections with certificates to login run_as_user = # run as specific group in LMTP mode. run_as_group =
-
@yythoss said in kopano-dagent error 80040111:
That is a good question, I think qmail.
To be able to successfully deliver mails (I.e. avoid those permission denied) errors kopano-dagent needs to be run with administrator privileges inside of Kopano. This is achieved by either running the deliver process as the Kopano user (which is set at local admin user) or by adding the user the delivery runs as (qmail in this case) to the local admin users.
The run_as settings in the cfg don’t have an effect here, since the dagent is not delivering as a service, but mails are piped to it.
-
how can i run kopano-dagent as admin user at this moment of delivery, but if the cfg does not work here and qmail run kopano-dagent?
-
(server.cfg)
local_admin_users = root kopano qmailThat way you can forego setting up a sudo transition from qmail->root.
-
There are several qmail users, but I have all registered.
Without success:local_admin_users = root kopano qmaild qmaill qmailp qmailr qmails qmailq qpsmtpd mail
under Zarafa, I have no problems with qmail and zarafa-dagent.
-
Hi @yythoss ,
I would recommend to get in touch with our support. The given instructions should have given qmail the ability to deliver mails to dagent. I’m sure a remote session with our support will lead to quick results.
Ps: doesn’t qmail support lmtp by now?
-
Hai, see this thread and try it please.
https://forum.kopano.io/topic/1318/authentification-between-dagent-sendmail-and-remote-kopano-core-server-fails/4