September 15, 2012
filed terribly early in the morning by dr_who in: hacking,linux,void
average time to read 0:26 minutes

while tweaking the spam filters on our mail server i finally took the step of adding a cron job to learn from the inbox and junk folders of each user. as we are using spamassassin as part of our spam defense this basically involves a couple of invocations of sa-learn to

  • learn the “ham” from each users inbox folder
  • learn the “spam” from each users junk folder

below is the shell script that gets invoked by cron once a day:

the while read line; do ... done bits are there so that i can nicely indent the output of sa-learn.

works rather nicely.

all content posted on these pages is an expression of my own mind. my employer is welcome to share these opinions but then again he might not want to.