Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-28-2006, 05:55 AM   #1
Registered: Sep 2005
Posts: 836

Rep: Reputation: 30
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.
Old 11-29-2006, 07:15 AM   #2
Registered: May 2001
Posts: 28,886
Blog Entries: 55

Rep: Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356
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:
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:
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.
Old 11-29-2006, 08:01 AM   #3
Registered: Sep 2005
Posts: 836

Original Poster
Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 05:18 AM
Email and spam in different folders using spamassassin tensigh Linux - Software 3 08-11-2005 11:21 AM
Training SpamAssassin - where to get current spam chakkerz Linux - Software 1 04-21-2005 12:27 AM
procmail and spam -- do not send out of office auto replay to spam draix Linux - Software 0 12-30-2004 09:35 AM
spamassassin tags spam while procmail isn't running broxtor Linux - Software 1 10-13-2004 03:57 PM

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration