Hi there,

Let's say, that among others, you have these directories:
/home/vpopmail/domains/example.com/user1/Maildir/cur
/home/vpopmail/domains/example.com/user1/Maildir/.spam/cur

The first is [EMAIL PROTECTED] Maildir inbox, the other is the spam folder
of that user.

Put your spam into the spam folder, and what's not spam into your inbox
(or any other folder, like ham-for-learning)


sa-learn --spam /home/vpopmail/domains/example.com/user1/Maildir/.spam/cur
sa-learn --ham /home/vpopmail/domains/example.com/user1/Maildir/cur

That should do it. you should not need more than 3000 spam messages for
that. It's always best to use spam and ham that is hitting you and not
some spam samples from elsewhere. Works better that way.

Good luck,
Maciej Soltysiak

On Wt Listopada 18 2008, 11:43 am, [EMAIL PROTECTED] wrote:
> How do I teach spamassassin what actually is spam and what's not
> by using sa-learn?
>
>> Hi,
>>
>> [EMAIL PROTECTED] pisze:
>>> How can i completely stop spam mails from going through my mail server.
>>> I
>>> followed Bill's Linux Qmail Toaster instructions of installing qmail
>>> but
>>> spam mails are still coming in!
>>>
>>>
>>>
>>>
>> Hmm, debug your spamassassin.
>> Check out /var/log/spamd/currunt for things like "access denied, error,
>> fail, permissions"
>> and try to fix those. spamassassin usually runs on vpopmail user that's
>> a hint for permissions.
>>
>> Also do a:
>>
>>     spamassassin --lint -D > sa.log 2>&1
>>
>> and then inspect the sa.log file and look for things like: missing perl
>> modules, wrong paths, permissions, whatever.
>>
>> Have you tought your spamassassin what actually IS spam and what's not
>> by using sa-learn?
>>
>> Hope this helps,
>> Maciej
>>
>>
>
>
>


Reply via email to