Please note: You are viewing the unstyled version of this web site. Either your browser does not support CSS (cascading style sheets) or it has been disabled.

Division of Information and Communication Sciences

Local Navigation

Computer Technical Services

SPAM Filtering

For those users who wish to filter out or fine tune spam filtering to their inbox, try using SpamAssassin. The following needs to be placed in your ~/.forward file. This file needs be world readable.

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

where username is your unix userid. Then create a file called ~/.procmailrc and insert the following:

# SpamAssassin sample procmailrc
#
# The condition line ensures that only messages smaller than 250 KB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 SpamAssassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "
  
  :0 fhw
  | sed -e '1s/^/F/'
}

For more information, please see the FAQ Using Spam Assassin at http://www.spamassassin.org.

Copyright & Site information

  • CRICOS Provider No 00002J, ABN 90 952 801 237
  • Last Updated: Tue, 31 Jan 2005 14:10:00
  • Authorised by: Web Coordinator