John Andersen wrote:
We set up two mailboxes on each Imap account (this was one of the issues that got us to Imap in the first place), labled "Missed-Spam" and "Not-Spam" (or what ever).
We also have a mailbox called just plain "Spam". Our system wide sieve scripts puts spam there.
All our users have to do is move / copy messages that spamassassin falsely tags into the Missed or Not mail boxes.
A script on the server then runs sa-learn against those mailboxes every so often. Sa-learn will also do razor-report so you help the community if you do automate this.
The script also purges these Missed and Not boxes for each user so that they don't have to manage them.
Its worked quite well for us, keeping our SA bayes database up to date, unlearning falsely accused spam (and razor revoke as well).
Thanks John,
That's the practical howto I was looking for. We run a similar setup, but have never implemented an unlearn function. I like the default:
~/Mail .. spam spam-learn spam-probably ..
setup with suspected spam going to spam-probably, user copy to spam-learn, then an hourly cron job running to have spamassassin learn the messages in spam-learn and then delete them. I think I'll add "spam-unlearn" to the end of the list and add the unlearn features to the cron job.
The solution turned out to be incredibly simple. All I needed to do was create the "spam-unlearn" mailbox folder and add a single line to the cron script that handles spam. The following is the complete cron script that both learns from spam in the "spam-probably" folder and unlearns the mis-tagged spam in the "spam-unlearn" folder. This is for dovecot with (mail_location = mbox:~/Mail:INBOX=/var/spool/mail/%u) in dovecot.conf. /usr/bin/fetchmail -a -s -n --folder spam-learn -m '/usr/bin/sa-learn --spam' sleep 2 /usr/bin/fetchmail -a -s -n --folder spam-unlearn -m '/usr/bin/sa-learn --ham' If you use UW imap, just change the above lines to "Mail/" before the folder names. (i.e. --folder Mail/spam-unlearn) Thanks for pointing me in the right direction. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org