Autoresponder failed
-
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.
-
@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…
-
@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…
-
@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…