Just out of curiosity, what is it that would be in a /root/bin directory?
That's not a typical directory, is it?

Quinn Comendant wrote:
> It's true. It is a better idea to deliver to a mailbox so you can save the 
> messages if you ever need to retrain SA.
> 
> I found my original problem now... /root/bin directory was not searchable by 
> user vpopmail (chmod 700) so qmail-local could not execute the program.
> 
> Thanks!
> 
> Quinn
> 
> 
> On Tue, 07 Nov 2006 06:53:16 -0500, Jake Vickers wrote:
>> Quinn Comendant wrote:
>>> I'm trying to create an alias that pipes a message to sa-learn. I've 
>>> created the alias:
>>>
>>> [EMAIL PROTECTED]/1 ~]$valias -s strangecode.com | grep spam
>>> [EMAIL PROTECTED] -> |sa-learn --ham --no-sync
>>> [EMAIL PROTECTED] -> |sa-learn --spam --no-sync
>>>
>>>
>>> That didn't work, so I tried this:
>>>
>>> [EMAIL PROTECTED]/1 ~]$valias -s strangecode.com | grep spam
>>> [EMAIL PROTECTED] -> |/root/bin/learnham
>>> [EMAIL PROTECTED] -> |/root/bin/learnspam
>>>   
>> Sorry, I replied to you on the vpopmail mailing list. The maildrop 
>> and qmailadmin package have been modified so that you can use the 
>> automatic spam detection flag to learn SPAM from. When you recompile 
>> these packages, include the flag:
>> --define 'spambox 1'
>> and you will see a check box in qmailadmin that allows you to turn on 
>> spam detection. What this does is run that user's mail through the 
>> /etc/mail/mailfilter script, which  will learn from spam that scores 
>> above 15 or so (don't remember what the default score is) as well as 
>> put it in the user's spam folder.
>> If you want to use the separate email addresses like you listed 
>> above, leave them as valid email addresses and run a script on them 
>> in the background with cron, something like this:
>> /usr/bin/sa-learn --spam 
>> /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/cur/*
>> rm -rf /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/cur/*
>> /usr/bin/sa-learn --spam 
>> /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/new/*
>> rm -rf /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/new/*
>>
>>
>> And then do the same thing for your ham mails, but use the --ham flag 
>> instead of the --spam flag for sa-learn.
>>


-- 
-Eric 'shubes'

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to