Occasionally these files can become corrupt and will give the following error code:
/home/user/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format May 20 15:53:32 user spamd[18076]: bayes: cannot open bayes databases
Run the the following command to clean out all bayes files and other associated files that are created by spamassassin and the control panel:
- Code: Select all
find /home -name "bayes*" -print | xargs rm -f ;
find /home -name "auto-whitelist" -print | xargs rm -f ;
find /home -name log.spam -print | xargs rm -f ; find /home -name spam.log -print | xargs rm -f ; find /var/tmp -name "clamav*" -print | xargs rm -rf
