Changes between Version 7 and Version 8 of faq/email/sa-filter-spam

Jan 7, 2016, 11:27:13 AM (6 years ago)
Jamie McClelland



  • faq/email/sa-filter-spam

    v7 v8  
    22== How do I use Spam Assassin to filter email with my email client? ==
    4 Note: this page specifically addresses using filters to deal with unwanted bulk email. Filters can be used for many purposes. If you use our webmail program (Horde/Imp or !SquirrelMail) we have written [wiki:faq/email/filter-spam-webmail specific directions for filtering spam with these programs]. We also have specific directions for users of [wiki:faq/email/sa-filter-spam-thunderbird Thunderbird/Icedove]. For all other email programs, please read on.
    6 To use Spam Assassin, you create a filter to catch Spam Assassin's "flags".
    8 You can do this two ways, depending on the email client or webmail program you are using.
    10 All email clients let you create a filter for the Subject line. So you create a filter with
    12 {{{
    13 *****SPAM*****
    14 }}}
    16 as the filter's trigger -- the box that will say something like "contains" or "text". Email filters catch all email in the subject line that contains the trigger phrase so, since the subject is going to change with each email, you just include the part you are sure will appear in all spam. That's what we just wrote above.
    18 Some email programs also let you create a filter for "any header" and if yours does,  you can make a filter with the flag line
    20 {{{
    21 X-Spam-Flag: YES
    22 }}}
    24 as the filter's trigger and have your program send the affected email to a special box (either trash or, if you want, a box you create -- you can call it "spam" for example). This method is the preferred method. It is better than the subject line method because someone might forward you a message with '*****SPAM****' in the subject line (maybe because they are pointing out that a message you sent them was tagged as spam). This message will get moved to your spam box even though it isn't spam. Using the X-Spam-Flag approach ensures that only messages that are tagged as spam will get filtered.
    26 The basic idea is that you are telling your email program to filter all messages that have the trigger line. In this way, you're using Spam Assassin as a kind of detective.
     4As of summer 2015, all email that is detected as Spam by spamassassin is automatically moved to your "Spam" folder (on some email programs it may be called "Junk"). There is no need to setup a specific filter in your email cient to do this task.