Welcome, Guest. [ Log In ]
Question   Setting up mail filters
Search KBase

Related Links:
· Using the Razor Spam Filter

Top 5 in this Area:
1. Using the Razor Spam Filter
2. Setting up mail filters
3. Can I use Razor spam filtering with POP3?
4. How do the DreamHost mail filters actually work?
5. Can I use Razor spam filtering with my own procmail set up?

Setting up mail filters
You can use our mail filters to intercept email containing a certain string of text. Uses for this could be to automatically delete email from an abusive sender, move email from a mailing list to a certain IMAP folder, or forward mail containing a certain string of text to another email address.

We recommend only using our special Razor Spam filter to attempt to filter spam. Just trying to block spam based on certain words in the subject/body/sender of messages usually doesn't work very well and can result in a lot of non-spam being accidentally filtered!

To use mail filters, they must first be set up. To do so, go to the "Mail :: Filters" section of the web panel:


If you have any filters, they will be listed here. If not, you will need to add one (see Adding Filters, below).

Viewing Current Filters

On the right side of each filter listed you can choose to edit or delete it. Using the 'Up' and 'Down' items, you can also change the order in which filters are executed (topmost filters are executed first, which lower filters executed thereafter).

The order in which filters execute can be important, as email messages captured by early filters won't be seen at all by later ones.

Adding Filters

If you don't have filters (or you do but want to create another), you must choose the mailbox you wish to add a filter to and click on the 'Go' button. Once you have done so, you will see the filter editor.

First, choose the portion of the email address you wish to search for text in. Current choices include the Subject, From, To, and CC headers - as well as the content of the message itself. Next, type the text you wish to search for.

After that, you must define what you wish to do with messages that match the criteria defined above. If a message matches, you have three choices of actions to do to it:

- Move it to an IMAP folder
- Redirect it to an email address
- Delete it

The latter two are fairly self explanatory, and won't be covered here except in that if you choose the forwarding option you must provide a valid email address in the field provided.

The first option - moving it to an IMAP folder - moves the message to a sub-folder that can be viewed if you currently use IMAP with your email client.

If you have other filters defined for this mailbox, you'll also be asked to define at what point you wish the filter to execute. Simply click on the radio button where you want it to run, and it will do so there.

When you are finished, click 'Add Filter'. You will be returned to the email filter listing.

Last updated: Aug 27, 2004.

User Post (2006-01-06 07:24:15 by pid07)
Actually "INBOX.folder.subfolder.subsubfolder" creates a new INBOX under INBOX. Just use "folder.subfolder.subsubfolder".
User Post (2005-03-20 17:24:47 by dischead)
If you need to do any filtering more sophisticated than examining the "From"/"To"/"CC"/"Subject" headers or the message body, you will have to roll your own procmail configuration rather than using DreamHost's mail filter page. SEE index.cgi?area=2626
User Post (2005-03-20 17:21:16 by dischead)
According to notes elsewhere in the Knowledge Base, Razor is no longer supported by DreamHost.
User Post (2004-11-30 15:47:54 by thegoldensun)
Note: you need to enter your IMAP folder in the form "INBOX.folder.subfolder.subsubfolder" - note also that your folder names cannot have spaces in them.