LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   spam/not spam folder in spamassassin (https://www.linuxquestions.org/questions/linux-networking-3/spam-not-spam-folder-in-spamassassin-505516/)

depam 11-28-2006 04:55 AM

spam/not spam folder in spamassassin
 
Someone told me that spamassassin has a way to learn base on the messages received by segregating spam from not spam messages. Can someone tell me how to do this? I am running copfilter in IPCop to filter out spams and Xmail as my MTA. I am also using squirrelmail for my imap.

unSpawn 11-29-2006 06:15 AM

Most efficient way is to identify and list mailboxen in an account that contain "ham" or legitimate email to a file and run SA's "sa-learn" on that:
Code:

find ~/mail -type f > ~/sa-ham-mbox.list
Now edit list to make sure mailboxen contain 1) enough messages and 2)"ham" and run the learner:
Code:

sa-learn -D --showdots --mbox --ham -f ~/sa-ham-mbox.list
You can do the same for mailboxes you know contain spam. "man sa-learn" for more information.

depam 11-29-2006 07:01 AM

Okay but how do I put spam folders on each of the mail accounts' IMAP? Here's what I want to do:

1.) Have a separate spam folder with scores 5 and below. Spam with scores more than 15 will automatically be deleted
2.) Currently I am using squirrelmail and I want to have a spam/not spam button. If the user hits the spam button, the message will be classified as spam and will not be received by any of the user accounts. But if they hit the not spam button, it will automatically whitelisted

Also, I found out that my mail server lacks SPF record. I would still research on this. Thanks.


All times are GMT -5. The time now is 06:56 PM.