>Are you running any periodical (cron) sync or expire options with sa-learn? Training mechanisms? I'm venturing to setup a setup within Horde/IMP so users >can flag spam/ham message to help train the database. But I'm still a bit short in the know-how of executing scripts via valias (see my related thread).
Maybe this is usefull for somebody. I've a cronjob like this 0 * * * * sudo -u vpopmail -H /usr/local/bin/learnSpam.sh >/dev/null VERIFICADO is a spam subfolder under spam and nospam imap INBOX folder and i told my users to resend (not forward!) or send as attachment the misses to [EMAIL PROTECTED] and the false positives to [EMAIL PROTECTED] I also implemented SpamButtons in squirrelmail (sending reported mails as attachment). I check that accounts via Outlook twice a day, and I put correctly reported (i don't trust my users :-P ) to the VERIFICADO (this means VERIFIED) subfolder. This is working great for my domains for a month now. I also do razor-report comment out if you like. #!/bin/bash # Spam Assassin Bayes Training VPOPMAIL=/home/vpopmail [EMAIL PROTECTED] [EMAIL PROTECTED] IMAPSUBFOLDERAPPEND=.VERIFICADO LEARNHAM="/usr/bin/sa-learn -u vpopmail --ham" LEARNSPAM="/usr/bin/sa-learn -u vpopmail --spam" RAZOR_REPORT="razor-report " # Check everything's ok if not, complain! if ! $VPOPMAIL/bin/vuserinfo $SPAMADDRESS >/dev/null 2>&1 ; then echo $SPAMADDRESS doesn\'t exist here. Aborting. ; exit 1; fi if ! $VPOPMAIL/bin/vuserinfo $NOSPAMADDRESS >/dev/null 2>&1 ; then echo $NOSPAMADDRESS doesn\'t exist here. Aborting. ; exit 1; fi # Checking spam folders... SPAMMAILDIR=`$VPOPMAIL/bin/vuserinfo -d $SPAMADDRESS `/Maildir/$IMAPSUBFOLDERAPPEND NOSPAMMAILDIR=`$VPOPMAIL/bin/vuserinfo -d $NOSPAMADDRESS `/Maildir/$IMAPSUBFOLDERAPPEND if ! [ -d $SPAMMAILDIR/new ]; then echo Unreaded SPAM maildir \($SPAMMAILDIR/new \) doesn\'t exist!. quitting.; exit 1; fi if ! [ -d $SPAMMAILDIR/cur ]; then echo Readed SPAM maildir \($SPAMMAILDIR/cur \) doesn\'t exist!. quitting.; exit 1; fi if ! [ -d $NOSPAMMAILDIR/new ]; then echo Unreaded NOSPAM maildir \($NOSPAMMAILDIR/new \) doesn\'t exist!. quitting.; exit 1; fi if ! [ -d $NOSPAMMAILDIR/cur ]; then echo readed NOSPAM maildir \($NOSPAMMAILDIR/cur \) doesn\'t exist!. quitting.; exit 1; fi # Learn spam! cd $SPAMMAILDIR/cur $LEARNSPAM ./* for spam in *; do $RAZOR_REPORT $PWD/$spam ; done 2>&1 rm -rf $SPAMMAILDIR/cur/* cd $SPAMMAILDIR/new $LEARNSPAM ./* for spam in *; do $RAZOR_REPORT $PWD/$spam ; done 2>&1 rm -rf $SPAMMAILDIR/new/* # Learn ham! cd $NOSPAMMAILDIR/cur $LEARNHAM ./* rm -rf $NOSPAMMAILDIR/cur/* cd $NOSPAMMAILDIR/new $LEARNHAM ./* rm -rf $NOSPAMMAILDIR/new/* # Update the Bayes DB /usr/bin/sa-learn --sync # EOF -----Mensaje original----- De: Quinn Comendant [mailto:[EMAIL PROTECTED] Enviado el: martes, 07 de noviembre de 2006 9:26 Para: qmailtoaster-list@qmailtoaster.com Asunto: Re: [qmailtoaster] bayes_* permissions It's not necessary, but it's a pretty darned good idea. Are you running any periodical (cron) sync or expire options with sa-learn? Training mechanisms? I'm venturing to setup a setup within Horde/IMP so users can flag spam/ham message to help train the database. But I'm still a bit short in the know-how of executing scripts via valias (see my related thread). Configuring and tuning SA is a top priority for the QT in my opinion. Q On Mon, 06 Nov 2006 22:01:25 -0700, Eric "Shubes" wrote: > I guess thing to know is that you don't want to run spamassassin (or > sa-learn) as root. Must be as vpopmail user. Is that it? --------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BEGIN:VCARD VERSION:2.1 N:Sánchez Martín;David FN:[EMAIL PROTECTED] ([EMAIL PROTECTED]) ORG:E2000 Financial Investments, S.A.;Centro de Nuevas Tecnologías TITLE:Administrador de Sistemas TEL;WORK;VOICE:902196177 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA;Asturias;;;Espa=F1a LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA=0D=0AAsturias=0D=0AEspa=F1a URL;WORK:http://www.e2000.es EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20060705T152542Z END:VCARD
--------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]