This is good. I will make a cron job. Then, when I think the folder is too big, I can empty it. I guess the job needs to ruin as root, which is how I ran sa-learn by hand. I wouldn't do that if I were you. Sa-learn is not exactly the fastest kid on the block,
That is being very kind [seriously]. Someone really needs to do a rewrite of SpamAssasin in something other than perl.
and if you don't purge the old mail it still has to parse it all before getting to the new stuff. Having the CRON entry delete the candidates after they have been processed is not onerous.
If you use Cyrus IMAPd you can use and ipurge event to automatically delete messages X number of days after they are received.
As for whether it runs as root or a user depends on other things. The way I have it configured its runs as a user.
Agree. Running sa-learn as non-superuser is pretty easy; just run spamd as non-root and run sa-learn as the same user. It is even easier if you pull messages via fetchmail rather than reading the filesystem directly (avoids yet more permission issues). fetchmail --all --silent --norewrite --keep --folder 'Shared Folders.departments.cis.spamreport' --mda 'sa-learn --spam' -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org