Filtering Email on the COE Mail Server


If you have questions or need more assistance with mail filters contact ECS at 7-3518 or help@engr.uky.edu.

Filtering WebMail

Filtering options for WebMail are under the "Options" button (in the menu at the top of the screen), in the "Other Options" column, "Filters". Once there, you should see something that says "Filter Settings", with a list of things you can do ("Edit your filter rules", "Edit your blacklist", "Edit your whitelist").

Just below that, there's a section where you can also opt to apply your filter rules every time you log in, or any time your INBOX is open, etc. The first one you probably want to select; the second will be useful if you have mail in a lot of folders, and you frequently switch back and forth between those folders and your INBOX. (You should exercise some care if you choose the third option, "Allow filter rules to be applied in any mailbox"; you could easily end up inadvertently deleting mail if rules meant for one folder get applied in another.)

Select "Edit your filter rules", and then "New Rule". Give the rule a name so you'll be able to find it when you come back to it later. In the menu that says "Select a field", select "Subject". That will open up a few more fields; the one that says "Contains" can be left alone, but enter "**SPAM**" in the one just to its right. Leave the next "Select a field" field alone, unless you want to add additional conditions to your rule.

In the "Do this:" section, select the option you'd like to exercise with your **SPAM**. We try hard to make sure that real mail doesn't get tagged as **SPAM**, but sometimes it does anyway, so be aware that if you choose "Delete message completely" there's a small chance that you'll lose something important. The safe thing to do is deliver it to a "spam" folder, and check that folder once in a while to make sure there isn't anything useful in it.

Press "Save" to save your rule. (You could select some of the "Mark message as:" tags if you want, but they're probably more useful for other rules you might want to enact. "Stop checking if this rule matches" is also only useful if you enact other rules.)

The first time you set up a new filter, you can (back on the Filter Rules list page) select "Apply Filters" to apply all your filters to all the messages in your inbox. (Unless you opted to apply the rules any time your INBOX is open.)

Filtering for Eudora

From the "Tools" menu, choose "Filters". Select "Incoming" for the type of mail to be filtered. In the "Header" box, choose "Subject" and "contains", and enter "SPAM" (all capital letters, no quotation marks).

(Some older versions of Eudora may hide this under the "Special" menu, rather than the "Tools" menu. If this is the case on your computer, please contact help@engr.uky.edu to request an upgrade for Eudora.)

In the "Actions" section, select "Transfer to" in the first line, and press the button to its right (it probably says "In"). You'll be presented with a list of your folders to choose from. Select "New" to create a new folder; give it a name, such as "Junkmail" or "Spam", and press "OK". You can either leave the remaining "Action" lines blank, or choose "Skip next" for the second one.

Close the window. You should be asked whether you want to save your changes; press "Yes".

Your filter should now be active.

Filtering for Lotus Notes (rules)

Open your mail database, and open the "Rules" folder. Click "New Rule..." to open the New Rule dialog. Make sure the rule is "On". For the condition, choose "subject" and "contains". In the final block on that line, enter "SPAM" (without the quotation marks). Press "Add" to save the condition.

In the "Specify Actions" section, choose "move to folder", and press "Select...". On the "Folders" dialog that opens, press "Create new folder...". Give the new folder a name ("Spam" is a good one) and press "OK". Select the new Spam folder from the dialog, and press "OK". Back on the "New Rule" dialog, press "Add Action". Press "OK" to save the rule.

Filtering for UNIX mail readers (Procmail)

To enable procmail, you must first create a procmail "recipe" file, .procmailrc, in your home directory. The recipe to place filtered mail (or any other mail with "*SPAM*" in the Subject: line) in a folder called "spam" is:

:0
* ^Subject:.*\*SPAM\*
$HOME/mail/spam

Next, log in to http://mail.engr.uky.edu and follow the "to configure your account" link. Choose "Configure mail forwarding" from the menu, and press the "Enable procmail" button.

Note that enabling procmail will overwrite any existing mail forwarding you have set up. If you wish to enable this mail filter and continue to forward your mail to another account, you will need to add additional recipes to your .procmailrc file. Some tips for setting this up are here.

For more details on procmail, see the UNIX man pages for procmail, procmailrc, and procmailex.