Difference between revisions of "SpamAssassin/ClamAV"

From CSEE Documentation
m (importing Spam Assassin instructions **NOT FINISHED**)
 
(condensed article to spam assassin only)
Line 1: Line 1:
==Spam and Clam Assassin (NOT FINISHED)==
+
==Spam Assassin for CSEE Mail Services==
Spam Assassin 3.1.4 and Clam Assassin 1.2.3 is now available for use. Spam Assassin is used to identify emails which has spam characteristics while Clam Assassin uses Clam Anti-Virus[http://www.clamav.net] to identify virus signatures. Short instructions are available to add Clam Assassin Only if the Spam Assassin check has been implemented.
+
Spam Assassin 3.1.4 is now available for the CSEE Mail Services. Spam Assassin is used to identify e-mails which have spam characteristics. Even though Spam Assassin is one of the best tools available, it is also known to filter out valid e-mails too. It is to be used at your own risk.
  
Neither Spam Assassin nor Clam Assassin are enabled by default. Even though these are some of the best tools available, they are also known to filter out valid emails too. They are to be used at your own risk.
+
==Setting Up Spam Assassin==
 +
Spam Assassin is not enabled by default. You will need to do the following to enable spam protection on your account:
  
==Setting Up Spam Assassin and Clam Assassin==
 
 
1. Log into your CSEE UNIX shell account.
 
1. Log into your CSEE UNIX shell account.
  
2. Edit/create a ~/.forward file in your home directory (this sample .forward can be downloaded here. [http://www.cs.umbc.edu/systems/download/.forward])
+
2. Edit/create a ~/.forward file in your home directory (this sample [http://www.cs.umbc.edu/systems/download/.forward .forward] can be downloaded.)
* You want a single line which pipes all mail to procmail as shown here (replace your_username with your actual username):
+
* You want a single line which pipes all mail to procmail as shown here (replace '''''your_username''''' with your actual username):
 
<code>"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #your_username"</code>
 
<code>"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #your_username"</code>
  
Line 15: Line 15:
 
<code>"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #brianb"</code>
 
<code>"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #brianb"</code>
  
3. Edit/create a ~/.procmailrc file (this sample .procmailrc can be downloaded [http://www.cs.umbc.edu/systems/download/.procmailrc]).
+
3. Edit/create a ~/.procmailrc file (this sample [http://www.cs.umbc.edu/systems/download/.procmailrc .procmailrc] can be downloaded).
  
 
* If you do not have a .procmailrc file, this is needed:
 
* If you do not have a .procmailrc file, this is needed:
  
<code>MAILDIR=$HOME/mail
+
<code>MAILDIR=$HOME/mail</code><br/><br/>
 +
<code>:0fw</code><br/>
 +
<code>| /cs/bin/spamassassin</code><br/><br/>
 +
<code>:0:</code><br/>
 +
<code>* ^X-Spam-Status: Yes</code><br/>
 +
<code>caughtspam</code>
  
:0fw
+
* If you have a working .procmailrc file, copy all of the lines above except for the line beginning with <code>MAILDIR</code> and place them near or at the top of your rules.
| /cs/bin/spamassassin
 
  
:0:
+
3. Let a few emails arrive. Spam Assassin will automatically create a .spamassassin directory and files within that directory.
* ^X-Spam-Status: Yes
 
caughtspam
 
  
:0fw
+
4. Frequently review your "caughtspam" mail folder. Messages older than 60 days will automatically get purged.
  | /cs/bin/clamassassin
 
     
 
      :0:
 
      * ^X-Virus-Status: Yes
 
      virus
 
  
 
+
5. Options are available in the <code>~/.spamassassin/user_prefs</code> file to better catch spam messages (and better prevent false positives). See the [http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html#user_preferences User Preferences] section in the [http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html Spam Assassin Configuration Page] for details.
    * If you have a working .procmailrc file, copy all of the lines above except for the line beginning with MAILDIR and place them near or at the top of your rules.
 
 
 
# Let a few emails arrive. Spam Assassin will automatically create a .spamassassin directory and files within that directory.
 
 
 
# Frequently review your "caughtspam" mail folder. Messages older than 60 days will automatically get purged. Messages that are identified as viruses will be stored in the "virus" mail folder. Do not attempt to open any e-mails placed in the "virus" folder since they may take advantage of a bug in a mail client and automatically execute. Please contact the CSEEIT Systems group if you need to safely review any message with viruses.
 
 
 
# Options are available in the ~/.spamassassin/user_prefs file to better catch spam messages (and better prevent false positives). See the "User Preferences" section in the Spam Assassin Configuration Page for details.
 

Revision as of 11:59, 5 January 2007

Spam Assassin for CSEE Mail Services

Spam Assassin 3.1.4 is now available for the CSEE Mail Services. Spam Assassin is used to identify e-mails which have spam characteristics. Even though Spam Assassin is one of the best tools available, it is also known to filter out valid e-mails too. It is to be used at your own risk.

Setting Up Spam Assassin

Spam Assassin is not enabled by default. You will need to do the following to enable spam protection on your account:

1. Log into your CSEE UNIX shell account.

2. Edit/create a ~/.forward file in your home directory (this sample .forward can be downloaded.)

  • You want a single line which pipes all mail to procmail as shown here (replace your_username with your actual username):

"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #your_username"

example:

"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #brianb"

3. Edit/create a ~/.procmailrc file (this sample .procmailrc can be downloaded).

  • If you do not have a .procmailrc file, this is needed:

MAILDIR=$HOME/mail

:0fw
| /cs/bin/spamassassin

:0:
* ^X-Spam-Status: Yes
caughtspam

  • If you have a working .procmailrc file, copy all of the lines above except for the line beginning with MAILDIR and place them near or at the top of your rules.

3. Let a few emails arrive. Spam Assassin will automatically create a .spamassassin directory and files within that directory.

4. Frequently review your "caughtspam" mail folder. Messages older than 60 days will automatically get purged.

5. Options are available in the ~/.spamassassin/user_prefs file to better catch spam messages (and better prevent false positives). See the User Preferences section in the Spam Assassin Configuration Page for details.