On 10/03/03 12:31 PM, Mike Bethune sat at the `puter and typed: > Hi, > is it possible to configure spamassassin to automatically report > high scoring spam to razor? If not, what would be a good way to do > this? I suppose I could write a filter to call spamassassin -r ... > (I'm using it on a relay server and so right now it is a manual > process for me if I want to submit a mail.) > > Thanks, > Mike
You can do this from procmail; here's how: :0 * autolearn=spam { :0c:sareport.lock | nice -n 20 spamassassin -r } I imagine you'll have a lot of people telling you it's not a good idea though. Regardless of the score, I only autoreport if I find certain SA tags that I KNOW FOR A FACT are a 100% spam indicator. I didn't include that recipe because I found that many of them are blacklisted by my upstream mail relay, but if you simply add a condition to the above recipe, you can restrict it to those definite spams. Simply add a line after the autolearn check: * autolearn=spam * TAG_!|TAG_2|TAG_3 If you have to use more than one line, use a \ character to continue the same condition check, because the recipe won't execute unless ALL condition lines get a hit. NOTE: some tags may not strictly indicate spam for you or your users! Also, note the 'nice -n 20' preceding the spamassassin call. I just put this in my .procmailrc because when I have power problems, I find my system tends to sieze while trying to handle 300 instances of spamassassin. I don't know that it's necessary, or even a good idea while using the lockfile, so I'd recommend you do your own due diligence on that. HTH Lou -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ 3rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk