suppress out of office mails for specific mail addresses
freyuh last edited by
our customer gets newsletter mails from newsletter@… and the out of office mails get back, because they are bounced by the newsletter mailserver. And so our customer gets the non delivery mail from kopano.
So is it possible to suppress out of office mails for specific sender mail adresses?
dw2412 last edited by
quite sure that there are options to achive this. Just have a look at /usr/sbin/kopano-autorespond - it is as man page says really a shell script that can be adapted according your needs. It is called by kopano-dagent everytime a new message arrives for a user having ooo enabled.
Idea could be to have some mysql db with all addresses that should not being autoreplied and do some mysql query that returns 0 and 1 inside the script and simply exit from script if address check returns something else than 0. You should only check that the script is still being used after some update. Don’t know if it is being overwritten but if and if the script is not executed with a hard path binding, than just place your adapted one in /usr/local/sbin and it will be used even after updating kopano. If it is hard path bound, than you should remember to patch it again after each update or be so kind and give your change to community (via github) so that it could be maybe included in newer kopano versions…
Don’t know if it is being overwritten
it actually is, but that is no problem since you can specify the out of office tools that is executed by the dagent.
Idea could be to have some mysql db with all addresses that should not being autoreplied and do some mysql query that returns 0 and 1 inside the script
A simple array in bash sounds easier, though.