High CPU usage for
spamtrain processes in the server.
sa-learn script is used by
spamassassin to learn the specific properties of spam from a folder which supposedly contains only spam emails.
CPU usage of the
sa-learn process depends on the amount of the emails in mailboxes and its size. Then if the number of emails is huge - CPU overusage is expected.
To workaround the issue use one of three solutions:
- Disable the
sa-updateexecution by moving
/etc/cron.daily/ to different location.
- Clear the mailboxes.
ioniceutilities to decrease the priority of the process