Difference between revisions of "Spam Control at CCRMA"

From CCRMA Wiki
Jump to: navigation, search
(.procmailrc File)
Line 23: Line 23:
 
.procmailrc gives Sendmail [http://en.wikipedia.org/wiki/Sendmail] instructions on where to route your email once it arrives at CCRMA.  The idea is to make Sendmail route email through SpamAssassin [http://spamassassin.apache.org] before it gets to your ''Inbox.''
 
.procmailrc gives Sendmail [http://en.wikipedia.org/wiki/Sendmail] instructions on where to route your email once it arrives at CCRMA.  The idea is to make Sendmail route email through SpamAssassin [http://spamassassin.apache.org] before it gets to your ''Inbox.''
  
SpamAssassin will run each email through its filter (filter rules are updated frequently to reflect new spam 'threats').  SpamAssassin adds several lines to your email header's, including: X-Spam-Level, X-Spam-Checker-Version, X-Spam-Status, and X-Spam-Report. For now, let's concentrate on '''X-Spam-Level''' since it is on this line, that you will create filter's in your email client.
+
SpamAssassin will run each email through its filter (filter rules are updated frequently to reflect new spam 'threats').  SpamAssassin adds several lines to your email header's.  When viewing your email in your email client, you normally only see an abbreviated header which shows the 'From:', 'To:', 'Date:' and 'Subject:' lines, but you can select elect to see the full headers as well.  The lines added by SpamAssassin to your (normally hidden) email header include:
 +
 
 +
<pre>
 +
X-Spam-Level
 +
X-Spam-Checker-Version
 +
X-Spam-Status
 +
X-Spam-Report.
 +
</pre>
 +
 
 +
 
 +
 
 +
For now, let's concentrate on '''X-Spam-Level''' since it is on this line, that you will create filter's in your email client.
 +
 
 +
 
 +
 
  
  

Revision as of 08:40, 4 October 2007

Welcome to CCRMA's Spam fighter homepage.

Having a 'Spam Free' inbox is a requires vigilence on everyone's part. In the text below, we'll describe what you can do to minimize your Spam.

First you need to determine which email client you will be using (e.g. Evolution, Thunderbird, WebMail, or Pine). Spam fighting is much more difficult if you use more than one email client. The descriptions below are for exclusive use of only one client. These solutions also assume that you will not be using client side 'intelligent email filtering' (where the your email client 'learns' about Junk mail).

Filtering is done through a program called procmail.

.procmailrc File

This file is key in your Spam control effort. It is a hidden or 'dot' file, that you should create in your home directory with the following contents, at a minimum:

# directory where mailboxes are located
# this is the default used by pine
MAILDIR=$HOME

# pipe the message through spamassassin in cm-home
:0fw
| spamc -d 171.64.197.138

.procmailrc gives Sendmail [1] instructions on where to route your email once it arrives at CCRMA. The idea is to make Sendmail route email through SpamAssassin [2] before it gets to your Inbox.

SpamAssassin will run each email through its filter (filter rules are updated frequently to reflect new spam 'threats'). SpamAssassin adds several lines to your email header's. When viewing your email in your email client, you normally only see an abbreviated header which shows the 'From:', 'To:', 'Date:' and 'Subject:' lines, but you can select elect to see the full headers as well. The lines added by SpamAssassin to your (normally hidden) email header include:

X-Spam-Level
X-Spam-Checker-Version
X-Spam-Status
X-Spam-Report.


For now, let's concentrate on X-Spam-Level since it is on this line, that you will create filter's in your email client.




At a minumum, this text in the .procmailrc file will direct your mail to SpamAssassin, which will than tag (add lines to) each email header reflecting its likelyhood of being spam (the header line X-Spam-Level). X-Spam-Level display's Spam Level using the asterisk. For example, for 'Spam Level 15':

X-Spam-Level: ***************

The idea then, is to establish email filter's, filtering on the asterisk, in your email client which, directing these messages into more manageable folder's or to delete the message automatically (wise for Spam Level 15).