wiki:faq/email/filter-spam-webmail

Version 14 (modified by R Scott LaMorte, 6 years ago) (diff)

--

Filter Spam using Webmail

The same principles apply with slightly different specifics depending on whether you are using IMP/Horde or SquirrelMail.

Using IMP/Horde (our default webmail program)

  • Log in to the webmail program
  • Click the Gear Symbol in the top right of the display
  • Click Preferences -> Mail.
  • Click Filters from the left column of options
  • Select "Apply filters when logging on." Click Save Options. Note: please do not select to run filters everytime you display your inbox. That will cause your inbox view to be very slow.
  • Click "Edit your filter rules."
  • Click New Rule (top left corner, green background)
  • Name the rule: Filter out spam
  • Check the "All of the Following" radio buttons
  • Under "Select a field" choose "X-Spam-Status"
  • Select "Contains" and type (exactly):
    Yes,
    
  • Select "Deliver to folder" and either choose an existing folder (if you already have a spam folder) or Create new folder if you want to create one. We do not recommend sending spam to the trash folder, since spam filters occasionally make mistakes.
  • Under "Mark Messages as:" check "Seen," if you don't want these messages appearing in your unread messages count.
    • Click Save

IMP/Horde will now start sorting your spam. Don't forget to visit the spam box once a day to delete all the messages in there (or transfer any you may want to read to the In Box). That's why you created the folder. If you don't, the only option will be to delete the spam-tagged emails and then you won't have the option of searching them in case you suspect an email you want was filtered.

Using SquirrelMail

  • Log in
  • Select "folders" from the top Navigation Bar and create a new folder (you can call it "spam", for example). This is where you're filtered mail will go since we do not recommend sending spam to the trash folder, since spam filters occasionally make mistakes. When the new folder is created...
  • Select "Options" from the top Navigation Bar
  • click on "Message Filters" (or "Mail Filters" is some versions)
  • Leave the dropdown at "All Messages" (the default) and Click on "New".
  • In the MATCH dropdown menu, go to "Subject" and next to "Contains" write in
     *****SPAM*****
    
    Remember: copy it exactly with the five asterisks.
  • Select "Deliver to folder" and choose the spam folder you created before.
  • Click Submit and you'll see the rule written out on the screen. The program will now filter your spam to the folder you created. Don't forget to go to the folder you created every day to delete messages. With Spam Assassin, that box is going to grow quickly.