LDD Today


Notes spam mail filtering
Notes mail rules

by
Craig
Lordan

Level: Beginner
Works with: Notes 5.0
Updated: 13-Dec-99


This article is first in our series this month on Notes spam mail filtering. In this article, we learn about a standard feature of Notes mail called mail rules. You will learn, by example, how to set up some simple mail rules to filter spam mail:
By learning the techniques demonstrated in these examples, you should be able to set up your own mail rules to filter spam mail.

You can create and use mail rules whether you access Notes mail via the Notes R5 client or a Web browser, however, your mail database must reside on a Domino R5 server.

Note: For complete instructions on using all the mail rules features, see Notes 5 Help.

Introducing mail rules
In Notes R5, you have a Rules folder in your mail database. This is where you create, store, and manage all your mail rules.

Rules folder

You use mail rules to perform actions on new messages, based on one or more conditions. The message conditions you can choose are:
The actions you can choose are:
Although the examples in this article focus on filtering spam mail, mail rules is a handy feature that allows you to manage all your incoming mail. For example, you can manage messages from your direct reports by moving any messages that include the phrase "status report" into a designated folder. Or maybe you're waiting for an important e-mail from Aunt Sally -- you can change the importance of any e-mail from her.

This rule checks for mail from Aunt Sally:

Rule to change importance

The result is the importance is changed when you receive a message from Aunt Sally:

Mail with exclamation point (important)

What if I don't have a Rules folder?
If you are using Notes R5, but you don't see a Rules folder in your mail database, you probably need to update the design of your mail database to the Mail (R5.0) template design. Check with your system administrator on the correct way to accomplish this task. The general instructions are:
If your mail database does have the Mail (R5.0) design, but you still can't see your Rules folder, check the Database Properties.
Creating mail rules to filter spam mail
What is spam to one person may not be spam to another, so it's up to you to create mail rules telling Notes what you consider to be spam. In the following examples, we will set up three mail rules to filter spam mail -- one based on the sender name, one based on the sending Internet domain, and one based on words in the message.

Filter spam mail from individuals
You can create mail rules to filter mail from individuals, based on all or part of their name, no matter what their Notes or Internet domain happens to be. In this example, we want to move any mail from anyone named "Smith" into a folder named "Unwanted."
Your new rule should now appear in your Rules folder. The green check mark means it's enabled. Any new mail from anyone with "smith" in their name will be moved to the Unwanted folder.

New Rule

Filter spam mail from Internet domains
In this example, rather than targeting particular people, we create a rule to delete any incoming mail from two different Internet domains.
Your new rule should now appear in your Rules folder. Any new mail from anyone with the Internet domain of "acme.com" or "example.net" will be deleted.

New Rule

Filter spam mail based on words in the message
But what if you don't know anything about the senders of the spam mail? You probably have seen many spam mail messages with phrases such as "Get rich quick," or other such language trying to sell you something. Wouldn't it be nice to avoid these messages, no matter who sends them? In this example, we will create a rule to filter spam mail based on words either in the body or the subject of the message.

In this example, we're also going to add an exception, so that messages containing the phrase "get rich quick" but are sent by Aunt Sally are not deleted. (She may offer you an opportunity to invest in her cookie-baking business.)
Your new rule should now appear in your Rules folder. Any new mail containing the exact phrase "get rich quick" but is not sent by Aunt Sally will be deleted.

New Rule

Making mail rules work for you
Now that you have seen some examples of how you can filter spam mail, you can review the full list of conditions and actions and design your own mail rules. You can be creative, mixing several conditions and exceptions within one mail rule, ensuring that you fight spam but do not miss any legitimate messages. You can also order mail rules in your Rules folder, using the "Move Up" and "Move Down" buttons, so that the rules at the top of the folder take precedence over rules at the bottom of the folder.

Try combining mail rules with other Notes mail features such as replication. Another example of unwanted, but perhaps not spam, mail are messages containing attached files or a large graphic. For mobile users, it may be time-consuming to replicate these large messages when you dial in to check your mail. You can create a mail rule with a message size condition, perhaps of 1,000,000 bytes (1 megabyte), so that large messages are moved to a "Large Messages" folder. You can then change your Replication Settings to exclude the "Large Messages" folder from replicating to the local mail file on your laptop PC. You can then read these large messages when you return to the office.

As you can see, mail rules provide many different options for filtering your messages, spam or otherwise.