HOWTO: Setup SpamAssassin under Plesk 7.5 Reloaded
Notes: Where "~/" is specified, this refers to the mail user that you're setting up SpamAssassin for. By example: /var/qmail/mailnames/domain.tld/user/
This tutorial also assumes you've managed to get SpamAssassin in working order (you can test this by piping this sample to it).
For your edification, this must be done as root, and is accomplishable using CPAN. Start the CPAN interactive shell by executing 'perl -MCPAN -e shell', and
from that prompt, 'install Mail::SpamAssassin'. Furthermore, all of these changes will have to take place as root, as domain-level logins don't have access
to the mailnames folders.
~/.qmail:
|/usr/bin/procmail -m .procmailrc
~/.procmailrc:
PATH=/bin:/usr/bin
:0fw:
*
|/usr/bin/spamassassin
:0:
*
./Maildir/
/etc/mail/spamassassin/local.cf:
Note: You may store per-user preferences in ~/.spamassassin/user_prefs.
# SpamAssassin config file for version 2.5x
# NOTE: INCOMPATIBLE WITH SPAMASSASSIN 2.6 AND 3.0 AT THIS TIME.
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)
# How many hits before a message is considered spam.
required_hits 5.0
# Whether to change the subject of suspected spam
rewrite_subject 1
# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM*****
# Encapsulate spam in an attachment
report_safe 0
# Use terse version of the spam report
use_terse_report 0
# Enable the Bayes system
use_bayes 1
# Enable Bayes auto-learning
auto_learn 1
# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english
ok_languages en
# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales en
# Add a mime header to all emails giving the status
add_header all Status _YESNO_, hits=_HITS_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
Maintainer: Scott D. Barker
Last Update: 2005-04-14