Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    kopano-dagent error 80040111

    Kopano Groupware Core
    5
    14
    1917
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Coffee_is_life
      Coffee_is_life last edited by

      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

      yythoss 1 Reply Last reply Reply Quote 0
      • yythoss
        yythoss @Coffee_is_life last edited by yythoss

        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.

        1 Reply Last reply Reply Quote 0
        • Coffee_is_life
          Coffee_is_life last edited by

          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:kopano

          i had a strange behaviour with permissions when run_as_user/group was commented.
          now my config is

          run_as_user =
          run_as_group =
          

          (without setting a user/group)

          since then this problem was gone

          coffee_is_life

          1 Reply Last reply Reply Quote 0
          • yythoss
            yythoss last edited by

            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 )

            1 Reply Last reply Reply Quote 0
            • yythoss
              yythoss last edited by

              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 =
              
              1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels Kopano @yythoss last edited by

                @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.

                Regards Felix

                Resources:
                https://kopano.com/blog/how-to-get-kopano/
                https://documentation.kopano.io/
                https://kb.kopano.io/

                Support overview:
                https://kopano.com/support/

                1 Reply Last reply Reply Quote 0
                • yythoss
                  yythoss last edited by yythoss

                  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?

                  1 Reply Last reply Reply Quote 0
                  • jengelh
                    jengelh Banned last edited by

                    (server.cfg)
                    local_admin_users = root kopano qmail

                    That way you can forego setting up a sudo transition from qmail->root.

                    1 Reply Last reply Reply Quote 0
                    • yythoss
                      yythoss last edited by yythoss

                      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.

                      1 Reply Last reply Reply Quote 0
                      • fbartels
                        fbartels Kopano last edited by

                        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?

                        Regards Felix

                        Resources:
                        https://kopano.com/blog/how-to-get-kopano/
                        https://documentation.kopano.io/
                        https://kb.kopano.io/

                        Support overview:
                        https://kopano.com/support/

                        1 Reply Last reply Reply Quote 0
                        • thctlo
                          thctlo last edited by thctlo

                          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

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post