Changing default spam action via cli
Posted: 11 Oct 2019, 10:12
Hi,
We need to roll out a change to update the high spam score action to 'delete' on many servers. This was achieved by:
sed -i 's/deliver$/delete/g' /usr/mailscanner/etc/rules/spamhigh.action.rules
However, although the file has updated and the defaults for all accounts are now delete in the correct file, the cPanel or WHM UI has not updated to show this change (although i'm assuming MailScanner is reading this file directly and it's working ok).
Could you point me in the direction of any command, file, or cache file which may be causing the UI to still show the old value?
Thanks,
Elliot
We need to roll out a change to update the high spam score action to 'delete' on many servers. This was achieved by:
sed -i 's/deliver$/delete/g' /usr/mailscanner/etc/rules/spamhigh.action.rules
However, although the file has updated and the defaults for all accounts are now delete in the correct file, the cPanel or WHM UI has not updated to show this change (although i'm assuming MailScanner is reading this file directly and it's working ok).
Could you point me in the direction of any command, file, or cache file which may be causing the UI to still show the old value?
Thanks,
Elliot