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 spamd error - PermissionError: [Errno 1] Operation not permitted

    Kopano Groupware Core
    9
    53
    5789
    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.
    • ashceryth
      ashceryth last edited by

      @BMWfan

      Did you install python3-daemon manually as suggested by @fbartels ?

      Assuming you’re running Debian: apt-get install python3-daemon

      BMWfan 1 Reply Last reply Reply Quote 0
      • cblaha
        cblaha last edited by

        @fbartels: I’ve installed python3-daemon via apt-get but I get the error already.

        1 Reply Last reply Reply Quote 0
        • BMWfan
          BMWfan @ashceryth last edited by BMWfan

          @ashceryth yes, but i doesn’t work.

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

            @fbartels have you changed more then only installing the python-deamon?

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

              try both
              apt install python-daemon python3-daemon

              and/or
              apt install python-daemonize python3-daemonize

              And what are the rights on : /var/lib/kopano/spamd/spam/
              i havent looked at my system, but the rights are probley 755
              you can try
              chmod -R 1770 /var/lib/kopano/spamd

              adduser spamassassin kopano
              adduser amavis kopano

              restart spamassassin and amavis

              BMWfan 1 Reply Last reply Reply Quote 0
              • cblaha
                cblaha last edited by

                I’ve now installed

                python-daemon, python3-daemon,python-daemonize, python3-daemonize

                but i got always the same error message.

                I always changed the permission on /var/lib/kopano/spamd and add the user to the group kopano.

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

                  @thctlo i’ve already done and now again without any progress depending on the failure.

                  1 Reply Last reply Reply Quote 0
                  • A Former User
                    A Former User last edited by

                    i have the same problem on centos 7.

                    2019-01-09 21:08:27,656 - spamd - ERROR - Traceback (most recent call last):
                    File “/usr/lib/python2.7/site-packages/kopano/log.py”, line 103, in log_exc
                    try: yield
                    File “/usr/lib/python2.7/site-packages/kopano_spamd/init.py”, line 83, in update
                    self.learn(item, searchkey, True)
                    File “/usr/lib/python2.7/site-packages/kopano_spamd/init.py”, line 106, in learn
                    os.chown(emlfilename, uid, gid)
                    OSError: [Errno 1] Operation not permitted: ‘/var/lib/kopano/spamd/spam/EEEE4E84C38D4D4DAC3EC2BCA3CD477A.eml’

                    1 Reply Last reply Reply Quote 0
                    • mark dufour
                      mark dufour last edited by

                      which version of python3-daemon are you using? so we can try to reproduce the problem here…

                      A Former User BMWfan 3 Replies Last reply Reply Quote 0
                      • A Former User
                        A Former User @mark dufour last edited by

                        @mark-dufour

                        Hi mark i am using python3.6.

                        iam starting the service like this

                        0_1547131538467_671c1cb3-539f-4645-aa24-3df9199628b9-image.png

                        1 Reply Last reply Reply Quote 0
                        • BMWfan
                          BMWfan @mark dufour last edited by BMWfan

                          @mark-dufour here is the needed output from a Debian 9 Server:

                          $ pip3.5 list
                          Package           Version
                          ----------------- -------
                          python-daemon     2.1.1
                          
                          A Former User 1 Reply Last reply Reply Quote 0
                          • A Former User
                            A Former User @BMWfan last edited by

                            @BMWfan

                            hi here is mine

                            0_1547151908400_4fe8c8ba-334f-4ae4-ab0d-b9ee05ddfa22-image.png

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

                              Check if the rights are correct for the user that is running the spam daemon.
                              @ckruijntjens

                              The systemd config of inotify-spamleard looks good, except the user/group.
                              it might be ok, but check the full path rights off : /var/lib/kopano/spamd/spam
                              In this folder check if folder spamd is acceccable (RWX) buy kopano user and group and same for the spam folder
                              of test with a 777 on the folders and check what happens.

                              A Former User 1 Reply Last reply Reply Quote 0
                              • A Former User
                                A Former User @thctlo last edited by

                                @thctlo

                                hi i indeed allredeay gave the folders 777 permissions however same issue.

                                0_1547192328519_9ddb7d4e-2d67-4c4b-aebe-0d4e8063e620-image.png

                                0_1547192392867_d395a25a-db02-497c-8438-98f7d46d84bb-image.png

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

                                  hmm, you still have the "operation not permitted message.

                                  Show me also the next folder content : /var/lib/kopano/spamd/spam

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

                                    On a Debian system you have to be member of a group to chown to that group. The permissions on the file do not matter for that.

                                    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/

                                    A Former User 1 Reply Last reply Reply Quote 0
                                    • A Former User
                                      A Former User @thctlo last edited by

                                      @thctlo

                                      that folder is also 777. i use a centos 7 system

                                      1 Reply Last reply Reply Quote 0
                                      • A Former User
                                        A Former User @fbartels last edited by

                                        @fbartels

                                        do i need to add rspamd group to kopano?

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

                                          since you antispam system is not running on the same user, this setting is kind of useless for you (only required for the local programm to have read/write access to it). I would just set sa_group to kopano.

                                          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/

                                          A Former User 2 Replies Last reply Reply Quote 0
                                          • thctlo
                                            thctlo last edited by thctlo

                                            Yes, you probley need to add rspamd to the kopano group.
                                            Can you run : systemctl show | grep -i protect

                                            it might be a case of ProtectSystem= ( sandboxing within systemd)

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