Re: Spam control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Schiøtz wrote:
I understand the steps but I'm not sure about how to use spamc/spamd
for training/learning and not sa-learn. Are you thinking about
'bayes_auto_learn = 1' ?
Could you give me an example of the command?

In my perl script I use:
cat $msg | /usr/bin/spamc -u $userid -x -L $type

In the command above, $userid is the username stored by SA in the bayes_vars SQL table and $type is either 'spam', 'ham', or 'forget'. See man spamc(1) for details. You can test this on the command line and tail /var/log/*mail*log to see spamd at work.

A copy of the script I wrote is at http://files.bluecamel.imap.cc/. It may not work at all for your setup but it may be a good starting point for you.

--
Scott Russell <lnxgeek@xxxxxxxxxx>
IBM Linux Technology Center, System Admin

----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux