Setting up Spam filter on Dragon.rutgers.edu Mail server
Copyrights © 2002 Hanz Makmur - Rutgers University
All mail delivered to username@cs.rutgers.edu is now checked for spam. The system we use to tag spam email is called SpamAssassins. It marks email as spam based on a scoring system. The SpamAssassins adds anotations to email headers but does NOT perform any filtering; instead, the filtering option is left to individual users preference.
In order to install a spam filter on your dragon.rutgers.edu mail, there are two options that you can choose:
A. Setup a filter to store spam email on a different mailbox. (recommended)
B. Setup a filter to delete spam email immediately.
The SpamAssassins program is not perfect. It is possible that you will have false positive where a valid email is tagged as spam. As a result, option A above is the best option to follow. This option will allow a user to examine email that is tagged as spam and delete it at a later time.
No matter which option you choose, you need to login to the server first. To login, you need to open your browser and connect to: http://dragon.rutgers.edu. Enter your username and password to login. You will be taken to the window shown in Picture 1.
Picture 1.
A. Setup a filter to store spam email on a different mailbox. (recommended)
To setup a spam filter to store spam email, you need to:
1.Create a Mailbox and name it: spam.
To create a Mailbox, enter the name of the mailbox, in this example we call it spam. Click on the Create Mailbox button to create the mailbox.
Picture 2.
2. Add a Rule.
To add a rule, you will need to click on the Rules link along the top of the window. The window shown in Picture 2 will open. To add a rule, follow the following steps:
Step 1. Enter filterspam the name of the rule.
Step 2. Click on the Add Rule button. Once you click on the Add Rule button, the window shown in Picture 3 will show.

Picture 3
3. Edit a Rule
To create the rule, click on the Edit link shown in Picture3 and the window shown in Picture 4 will open.

Picture 4
4. Create the filter spam rule by selecting items from the menu. Follow Picture 4 above as your guide.
Step 1. Select: Header Field from the popup menu in Data field.
Step 2. Enter exactly: X-Spam-Flag: YES in the Parameter field.
(notice a space before the word YES and capitalization of the words)
Step 3. Select Stored in from the popup menu under Action header.
Step 4. Enter spam in the Parameters field.
Step 5. Click on the Update button to save your changes.
Picture 5.
As soon as the Update button is clicked, the window shown in Picture 5 will open. Continue your setup by following steps below:
Step 6. Select Discard from the popup menu under Action header
Step 7. Click on the Update button to save your changes
5. Logout by clicking on the Logout option and quit from your browser.
6. Refresh your Mailbox list.
In order for the spam mailbox to show up on your Mailbox list you will need to refresh your mailbox list.
Run your mail client. Depending on the mail client the steps to refresh the mailbox list is different.
For Outlook Express 5 on MS Windows,
-you will need to click using using your right mouse button on dragon.rutgers.edu mailbox
-Select Reset List from the popup Menu to reset the mailboxes.
For Netscape 4.x,
-Click on the File Menu and select Subscribe.
-A Window will open with a list of all your mailboxes. Click on the Refresh List button.
-A list of all your mailboxes will show up. Check on spam to subscribe the spam mailbox.
For Outlook Express on the Macintosh
- Go to the View menu and select Get Complete Folder List
For Entourage for the Macintosh,
-Click on the dragon.rutgers.edu mailbox. A list of your mailboxes will open on the right window pane.
-Click on the Update List button to update your mailboxes list.
-Click on Spam in your mailbox list and click the Subscribe button.
If you are using other programs, please look at your online help or manual to find out how to reset the Mailbox list.
7. Testing your spam filter
To test the filter above, simply forward yourself an email you think is spam. When the email is classified as spam, it will be stored into your spam folder.
B. Setup a filter to delete spam email immediately.
This option is not recommended. Support staff WILL NOT be able to recover email deleted by this filter. If you still prefer to delete all spam mail immediately, follow steps below:
1. Follow choice A step 1 to 3.
2. Make sure to change your filter spam rule as shown in Picture 6 below.

Picture 6.
3. Create the filter spam rule by selecting items from the menu. Follow Picture 4 above as your guide.
Step 1. Select: Header Field from the popup menu in Data field.
Step 2. Enter exactly: X-Spam-Flag: YES in the Parameter field.
(notice a space before the word YES and capitalization of the words)
Step 3. Select Discard from the popup menu under Action header
Step 4. Click on the Update button to save your changes
4. Logout by clicking on the Logout option.
5. Testing your spam filter
To test the filter above, simply create a new mail containing this
string:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
and send it to yourself. This mail will arrive as spam. When the email is classified as spam, you will not see the forwarded email arriving in your Inbox.
Further Readings
If you are using CS unix system as your mail server, there are separate instructions on how to create a rule. Please see How to Get Rid of Spam Email.