Quote:
Originally Posted by dwmtractor Yes and no. According to everything I've read on these forums, if you drag a message into your junk folder using an IMAP client, it will never hit spam training. So whatever the cron'ed version of zmtrainsa is doing, it is apparently not that (although I have never understood why it couldn't). |
did a quick & dirty script to do this
could be cron'ed:
Code:
su - zimbra -c 'zmprov gaa' | grep -v ham | grep -v spam | grep -v wiki> user_list.txt
rm -f update_spam.sh
touch update_spam.sh
chmod u+x update_spam.sh
for SEARCH_ACCOUNT in `cat user_list.txt`;
do
echo 'su - zimbra -c '\''zmtrainsa '$SEARCH_ACCOUNT' spam junk'\' >> update_spam.sh
done
./update_spam.sh Quote:
Originally Posted by dwmtractor Any message you mark as junk using your webclient will be used to train your filters. However, any message that gets to the junk folder through other means (it gets a high enough score on the RBLs for example) is not going to influence your Bayesian filters at all. The only other way to train the filters is to forward the spam messages AS ATTACHMENTS to your automatically-created spam training account. This is the only way for POP clients. |
found an excellent article on how this works
sa-learn - train SpamAssassin's Bayesian classifier Quote:
Originally Posted by dwmtractor Did you (at the time of setup or since) also train your filters with some ham? Conventional wisdom is that you need to have trained the system with at least 200 messages of each spam and ham before the filters have enough to go on to really make a difference (in my case that was easy, I have two users who between them get over 300 spam messages a day). How long has your server (with spam filtering activated) been operational? |
just used the default "JUNK"/"NOT JUNK" icons will train on accounts now
