Hi, Check the latest version of qmailadmin-toaster and maildrop-toaster. They will send all the spam over a preset value to sa-learn.
If you want to send the remaining tagged spam messages to sa-learn, you can use the script (below) but be sure to change .spam to .Spam for compatibility with the maildrop recipe. You do do not have to compile anything to use the original script. Regards, Nick > Hey nick did u have to compile some package again to turn it on ? > I've to use my spamassassin in the AUTOMODE > > regards, > > ----- Original Message ----- > From: "Nick Hemmesch" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, August 17, 2005 2:29 PM > Subject: [qmailtoaster] sa-learn for spamassassin > > >> Hi, >> >> I've had several emails asking how to run sa-learn. >> >> I have several users that are good about moving samples of ham >> to a ham folder and have their spam filter to a spam folder. >> >> I make a files containing a list of the domains to use: >> /home/vpopmail/domains/domlist.txt >> >> For each domain, I make a list of the user's names: >> /home/vpopmail/domains/example.com/userlist.txt >> >> Note both lists: all on one line seperated by one space >> >> I make the script executable in /usr/bin and soft link it >> to /etc/cron.daily. >> >> Hope this helps. >> >> Regards, >> >> Nick >> >> >> Here is the script I use: >> >> ~~ Begin spam-learn script ~~ >> #!/bin/sh >> # >> # Script to feed sa-learn from selected users >> # >> # Add the selected users to userlist.txt in vpopmail >> # domain root. Add users on one line with one space >> # between names but, no space or line feed at the end >> # of the line. >> # >> # Add domains to domlist.txt in the same manner. >> # >> # Nick Hemmesch <[EMAIL PROTECTED]> >> # March 24, 2005 >> # >> >> DPATH=/home/vpopmail/domains >> DLIST=${DPATH}/domlist.txt >> DLEARN=`cat ${DLIST}` >> for x in ${DLEARN}; do >> echo "Checking $x" >> USERLIST=${DPATH}/$x/userlist.txt >> SPAMUSER=`cat ${USERLIST}` >> for i in ${SPAMUSER}; do >> /usr/bin/sa-learn --spam ${DPATH}/$x/$i/Maildir/.spam/new/* >> rm -rf ${DPATH/$x}/$i/Maildir/.spam/new/* >> /usr/bin/sa-learn --spam ${DPATH}/$x/$i/Maildir/.spam/cur/* >> rm -rf ${DPATH}/$x/$i/Maildir/.spam/cur/* >> /usr/bin/sa-learn --spam ${DPATH}/$x/$i/Maildir/.ham/new/* >> rm -rf ${DPATH}/$x/$i/Maildir/.ham/new/* >> /usr/bin/sa-learn --spam ${DPATH}/$x/$i/Maildir/.ham/cur/* >> rm -rf ${DPATH}/$x/$i/Maildir/.ham/cur/* >> /usr/bin/sa-learn --sync >> done >> done >> >> exit 0 >> ~~ End spam-learn script ~~ >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
