SCS uses the following spam protection:
- Greylisting ((Greylisting is set to a 1 minute delay))
- Spam Assassin
Spam Assassin
You can enable personal spamassassin settings by adding the following to your homedirectories .procmailrc file:
SHELL=/bin/sh
# Enable personal spamassassin settings:0fw: spamassassin.lock
:0fw: spamassassin.lock
* < 256000
| spamassassin
Once you receive your first message a default .spamassassin directory will be generated. There you will find a user_prefs file that you can edit. The file also allows for personal blacklists and whitelists, and you can alter the spamassassin-score.
What does Spam Assassin do?
Spamassassin will tag an email as spam in the email header and on the Subject line. The Subject line will have [SPAM ++++++] where the + signs indicate the spam level. Now its up to the user (you) what you want to do with those emails. There are email clients that can identify emails labeled as spam and can remove them.((Thunderbird has spam filtering options))
Deleting blacklisted emails
You can add a procmail rule that will delete all your personal blacklisted emails. Here are the steps to enable it:
- Add a .procmailrc file on [[http://www.scs.carleton.ca/nethelp/doku.php?id=services:external_access_host_access | access]]/lambda (see code below)
- Once you receive an email with the procmail code enabled, it will generate a file called .spamassassin/user_prefs. Edit this file and add your blacklisted email of the form “blacklist_from somewhere@somesite.com”
- Check the logfile .spamassassin/procmail.log if your procmail script deleted any messages
Here is the ~/.procmailrc file that can delete blacklisted emails using a combination of spamassassin and procmail filtering:
SHELL=/bin/sh
TRASH=/dev/null
LOGFILE=$HOME/.spamassassin/procmail.log
VERBOSE=no
# Enable personal spamassassin settings
:0fw: spamassassin.lock
* < 256000
| spamassassin
# Remove all spamassassin spam scored 50 (blacklisted emails)
:0
* ^Subject:.\[SPAM \+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\
+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\]
$TRASH`
You can add this file in your SCS account accessible through access or the lambda linux network.
Deleting all emails above a certain spamassassin score
You can delete all emails above a certain spamassassin score. This is done by adding the following code to your .procmailrc file:
SHELL=/bin/sh
TRASH=/dev/null
LOGFILE=$HOME/.spamassassin/procmail.log
VERBOSE=no
# Enable personal spamassassin settings
:0fw: spamassassin.lock
* < 256000
| spamassassin
# Removes all spam higher than level 15
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
$TRASH