logo Filtering Mail

In our system, the traditional ~/.forward file is used only to catch mail from unconfigured Linux machines and so is set to forward mail to the mail server. Inbound mail at the server is eventually disposed of according to instructions in .exim files which you can use to forward or filter message.

Before processing .exim the origin of a message is checked against blacklists and whitelists of senders and the content of a message may cause it to be marked as spam. You can choose how much of this preprocessing you want and you can use the .exim files to specify your own filtering.

Note:.exim files live in the home directory on the mailserver not your normal home directory so you must create/copy them to gpo.stanford.edu.

Simple .exim file for forwarding

To forward your mail elsewhere put the e-mail address in the ~/.exim just as you would in a traditional ~/.forward file,e.g:
descartes@academie.fr

Introduction to .exim file syntax

Each line in a non-empty .exim file provides a comma-separated list of delivery instructions beginning with one of #,/,|, or text interpreted as follows::

Spamassassin

To opt-out of Spamassassin processing at graphics, simply remove the ~/.spamassassin directory on gpo.

Spamasssassin works by scanning the headers and body of messages looking for suspect content. Each test generates a score value and when the score exceeds a user-definable threshhold, the mail declared to be spam. The original message is then made an attachment to a SPAM report.

To customize Spamaassin scoring and reporting for your mail, you can add lines to the defaults in:

~/.spamassassin/user_prefs to alter your Spamassassin User Preferences

Mail which comes via an @cs.stanford.edu address is normally run through the global Spamassassin on the CS servers and not filtered a second time at graphics. You can customize some of the CS settings at: CS Spamasassin Settings

If you want your graphics preferences to be used instead, you can ask to be added to theCS Spamassassin opt-out list by sending a request to action@cs.stanford.edu.


Sample filter files

The links below point at two simple examples of personal mailfilter files that work with the headers added by SpamAssassin.


Last update: April 25, 2007 05:01:09 PM
© 1994-2013 Stanford Computer Graphics Laboratory