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

    How to deliver mail from getmail to kopano-dagent?

    Kopano Groupware Core
    3
    11
    1608
    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.
    • wndkk
      wndkk last edited by

      I have the same issue with the community edition. Is there a solution or a workaround?

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

        Hello.

        We need more infos to help you properly. What OS do you use? Which Kopano Version? What does the dagent.log say? How do you have configured the dagent? Run as kopano or run as root?

        I would suggest to run the kopano-dagent as root, for a quick and dirty workaround.

        Cheers Basti

        1 Reply Last reply Reply Quote 0
        • wndkk
          wndkk @itserv last edited by

          I’m using it with getmail on debian 9.
          Here is the output (changed to mail.com):

          getmail version 4.54.0
          Copyright (C) 1998-2012 Charles Cazabon.  Licensed under the GNU GPL version 2.
          MultidropPOP3SSLRetriever:test@mail.com@pop3.mail.com:995:
          Delivery error (command kopano-dagent 6997 error (70, [info   ] Coredump status left at system default.
          [ 6997] [info   ] * Loading plugins started
          [ 6997] [info   ] ** Checking plugins in /var/lib/kopano/dagent/plugins
          [ 6997] [info   ] * Loading plugins done
          [ 6997] [error  ] virtual HRESULT M4LMsgServiceAdmin::ConfigureMsgService(const MAPIUID*, ULONG_PTR, ULONG, ULONG, const SPropValue*): MSGServiceEntry failed: logon failed (80040111)
          [ 6997] [error  ] HRESULT KC::CreateProfileTemp(const wchar_t*, const wchar_t*, const char*, const char*, ULONG, const char*, const char*, const char*, const char*): ConfigureMsgService failed: logon failed (80040111)
          [ 6997] [error  ] CreateProfileTemp failed: logon failed (80040111)
          [ 6997] [error  ] virtual HRESULT M4LMsgServiceAdmin::ConfigureMsgService(const MAPIUID*, ULONG_PTR, ULONG, ULONG, const SPropValue*): MSGServiceEntry failed: logon failed (80040111)
          [ 6997] [error  ] HRESULT KC::CreateProfileTemp(const wchar_t*, const wchar_t*, const char*, const char*, ULONG, const char*, const char*, const char*, const char*): ConfigureMsgService failed: logon failed (80040111)
          [ 6997] [error  ] CreateProfileTemp failed: logon failed (80040111)
          [ 6997] [error  ] Access denied or connection failed for user "test", using socket: "default:": logon failed (80040111)
          [ 6997] [error  ] HRESULT deliver_recipient(pym_plugin_intf*, const char*, bool, FILE*, DeliveryArgs*): HrGetSession failed: logon failed (80040111)
          [ 6997] [error  ] int main(int, char**): deliver_recipient failed: logon failed (80040111)))
            msg 1/1 (1071 bytes), delivery error (command kopano-dagent 6997 error (70, [info   ] Coredump status left at system default.
          [ 6997] [info   ] * Loading plugins started
          [ 6997] [info   ] ** Checking plugins in /var/lib/kopano/dagent/plugins
          [ 6997] [info   ] * Loading plugins done
          [ 6997] [error  ] virtual HRESULT M4LMsgServiceAdmin::ConfigureMsgService(const MAPIUID*, ULONG_PTR, ULONG, ULONG, const SPropValue*): MSGServiceEntry failed: logon failed (80040111)
          [ 6997] [error  ] HRESULT KC::CreateProfileTemp(const wchar_t*, const wchar_t*, const char*, const char*, ULONG, const char*, const char*, const char*, const char*): ConfigureMsgService failed: logon failed (80040111)
          [ 6997] [error  ] CreateProfileTemp failed: logon failed (80040111)
          [ 6997] [error  ] virtual HRESULT M4LMsgServiceAdmin::ConfigureMsgService(const MAPIUID*, ULONG_PTR, ULONG, ULONG, const SPropValue*): MSGServiceEntry failed: logon failed (80040111)
          [ 6997] [error  ] HRESULT KC::CreateProfileTemp(const wchar_t*, const wchar_t*, const char*, const char*, ULONG, const char*, const char*, const char*, const char*): ConfigureMsgService failed: logon failed (80040111)
          [ 6997] [error  ] CreateProfileTemp failed: logon failed (80040111)
          [ 6997] [error  ] Access denied or connection failed for user "test", using socket: "default:": logon failed (80040111)
          [ 6997] [error  ] HRESULT deliver_recipient(pym_plugin_intf*, const char*, bool, FILE*, DeliveryArgs*): HrGetSession failed: logon failed (80040111)
          [ 6997] [error  ] int main(int, char**): deliver_recipient failed: logon failed (80040111)))
            1 messages (1071 bytes) retrieved, 0 skipped
          

          Let me know if you need anything else.

          sebschremser 1 Reply Last reply Reply Quote 0
          • sebschremser
            sebschremser @wndkk last edited by

            Hello.

            Please post the output of the following commands:

            ps aux | grep kopano
            grep run_as /etc/kopano/dagent.cfg
            sudo -u kopano ls -la /var/lib/kopano/dagent/plugins/
            cat /selinux/force
            

            Cheers Basti

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

              kopano    1433  0.0  0.7 166132 16340 ?        Ssl  Mär03   0:03 /usr/sbin/kopano-dagent -l
              kopano    1434  0.0  0.2 128608  4408 ?        S    Mär03   0:00 /usr/sbin/kopano-dagent -l
              kopano    1456  0.0  0.7 143288 15048 ?        Ss   Mär03   0:02 /usr/sbin/kopano-gateway -F
              kopano    1477  0.0  0.5 130564 10524 ?        Ss   Mär03   0:01 /usr/sbin/kopano-ical -F
              kopano    1499  0.0  0.6 331368 13620 ?        Ssl  Mär03   0:06 /usr/sbin/kopano-monitor -F
              kopano    1545  0.0  2.4 376276 49276 ?        Ssl  Mär03   3:14 /usr/bin/python2 /usr/sbin/kopano-search -F
              kopano    1595  0.0  1.7 250084 35124 ?        Ssl  Mär03   1:16 /usr/sbin/kopano-spooler -F
              kopano    1596  0.0  0.2 128516  4364 ?        S    Mär03   0:09 /usr/sbin/kopano-spooler -F
              system    7380  0.0  0.0  12784   936 pts/0    S+   16:02   0:00 grep kopano
              kopano   22640  0.1  1.2 271320 26260 ?        Ssl  Mär04   3:29 /usr/sbin/kopano-server -F
              kopano   22669  0.0  1.8 300564 38152 ?        Sl   Mär04   0:00 /usr/bin/python2 /usr/sbin/kopano-search -F
              kopano   22671  0.0  1.3 302316 27752 ?        S    Mär04   0:00 /usr/bin/python2 /usr/sbin/kopano-search -F
              
              #run_as_user = kopano
              #run_as_group = kopano
              

              Should I put blanks here or set to system? I’m running getmail as the system user.

              drwxr-xr-x 2 kopano kopano 4096 Feb 28 11:55 .
              drwxr-xr-x 3 kopano kopano 4096 Mär  2 17:00 ..
              

              Don’t have that SELinux folder.

              Thanks.

              sebschremser 1 Reply Last reply Reply Quote 0
              • sebschremser
                sebschremser @wndkk last edited by

                Hello.

                I’m not familiar with getmail, but i think it does the same thing as fetchmail.

                I would change the /etc/kopano/dagent.cfg to something like this:

                #run_as_user = kopano
                run_as_user = root
                #run_as_group = kopano
                run_as_group = root
                

                Then restart the dagent, look which user runs the dagent (ps aux |grep kopano) and test again.

                Cheers Basti

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

                  @sebschremser said in kopano-dagent error:

                  I would change the /etc/kopano/dagent.cfg to something like this

                  or run getmail as the kopano user, or let getmail deliver mails via smtp (preferred)

                  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
                  • wndkk
                    wndkk last edited by wndkk

                    Changing the dagent user did nothing but running getmail as the kopano user worked.
                    Thank you.

                    How can I set up a crontab with the kopano user though? Can’t really use sudo here, can I?

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

                      @wndkk
                      I have moved your questions into a dedicated thread since they are more about correctly interacting with kopano-dagent instead of a bug (so no relation to the thread you posted in).

                      as for your last question you find your answer in https://stackoverflow.com/questions/8475694/how-to-specify-in-crontab-by-what-user-to-run-script

                      I would still recommend to deliver mails via smtp from getmail to the actual inbox.

                      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
                      • wndkk
                        wndkk last edited by wndkk

                        First of all, thank you for the support.
                        Is there a documentation about SMTP delivery?

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

                          @wndkk just ask the search provider of your choice. I’m sure there are plenty of Howtos for getmail and SMTP delivery.

                          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
                          • First post
                            Last post