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

    Autoresponder failed

    Kopano Groupware Core
    2
    4
    373
    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.
    • apio-sys
      apio-sys last edited by

      Season’s greetings.

      I have seen a lot of questions/issues regarding autoresponder failed but not exactly the one I’m having on one of my Kopano machines. Some solutions point to legacy methods using /etc/kopano/autoresponder.cfg.

      Kopano version latest stable 8.7.24 (licensed version) on Debian 10.11. Autoresponses are not delivered and with log level 6 for kopano-dagent I capture following in the dagent.log:

      Tue Dec 28 10:27:46 2021: [debug  ] Target user has OOF active
      Tue Dec 28 10:27:46 2021: [info   ] Starting autoresponder for out-of-office message
      Tue Dec 28 10:27:46 2021: [debug  ] Running command: "/usr/sbin/kopano-autorespond" "user@domain.com" "sender@domain.com" "Out of office" "username" "/tmp/autorespond.G3NbiR"
      Tue Dec 28 10:27:46 2021: [debug  ] popen("/usr/sbin/kopano-autorespond" "user@domain.com" "sender@domain.com" "Out of office" "username" "/tmp/autorespond.G3NbiR") failed: Permission denied
      Tue Dec 28 10:27:46 2021: [error  ] Autoresponder failed
      

      I don’t undertsand what is going wrong or what permission is not correct. On another Kopano machine of same version, getting below feedback in log:

      Tue Dec 28 13:20:27 2021: [debug  ] Target user has OOF active
      Tue Dec 28 13:20:27 2021: [info   ] Starting autoresponder for out-of-office message
      Tue Dec 28 13:20:27 2021: [debug  ] Running command: "/usr/sbin/kopano-autorespond" "user@domain.com" "sender@domain.com" "Out of Office" "username" "/tmp/autorespond.tgazrS"
      Tue Dec 28 13:20:27 2021: [error  ] Autoresponder failed
      

      But the OOO message works their as expected. I have a support case open as well regarding this (KS-47726) and I need some help what permissions to check.

      Thanks in advance for any tips.

      Kind regards,

      Joris.

      thctlo 1 Reply Last reply Reply Quote 0
      • thctlo
        thctlo @apio-sys last edited by

        @apio-sys check if apparmor is installed and enabled.

        i would suggest to use /var/tmp for the autoresponder location
        that also doesnt delete these files on reboot.

        you need an entry for : /usr/sbin/kopano-autorespond
        look at others and use the include as shown in the examples.
        (* this bug shows some examples how its done. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907400 *unrelated to your problem. )

        So something like this needs to be added for : /usr/sbin/kopano-autorespond

        “/tmp/autorespond." rw,
        "/var/tmp/autorespond.
        ” rw,

        Adding both wont hurt…

        apio-sys 1 Reply Last reply Reply Quote 0
        • apio-sys
          apio-sys @thctlo last edited by

          @thctlo Many thanks, that indeed explains the problem on Debian with aa activated. I will have to check the addons for kopano-autorespond that will work or not, haven’t had time for that so far. The thing is when just deactivating aa it will work as expected but still logs the 2nd error msg below. Would be nice to see the real/validated fix for case 1 and no error in case 2…

          thctlo 1 Reply Last reply Reply Quote 0
          • thctlo
            thctlo @apio-sys last edited by

            @apio-sys said in Autoresponder failed:

            Woul

            i would recommend you keep AA enabled and configure it.
            Main reason for that is, when any kernel upgrade comes, it 9 out of 10 times it also installs AA again.
            when its not correctly disable (what also often happen) you hit problems again…

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