Mail User Agents - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

SpamAssassin uses header analysis, text analysis, blacklists, a spam-tracking database, and
self-learning Bayesian spam analysis to quickly and accurately identify and tag spam.
The easiest way for a local user to use SpamAssassin is to place the following line near the top
of the
~/.procmailrc
INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc
The
/etc/mail/spamassassin/spamassassin-default.rc
that activates SpamAssassin for all incoming email. If an email is determined to be spam, it is
tagged in the header as such and the title is prepended with the following pattern:
*****SPAM*****
The message body of the email is also prepended with a running tally of what elements caused
it to be diagnosed as spam.
To file email tagged as spam, a rule similar to the following can be used:
:0 Hw * ^X-Spam-Status: Yes spam
This rule files all email tagged in the header as spam into a mailbox called
Since SpamAssassin is a Perl script, it may be necessary on busy servers to use the binary
SpamAssassin daemon (
way, however, requires root access to the host.
To start the
daemon, type the following command as root:
spamd
/sbin/service spamassassin start
To start the SpamAssassin daemon when the system is booted, use an initscript utility, such as
the Services Configuration Tool (
service. Refer to
Section 4.2, "Runlevel Utilities"
To configure Procmail to use the SpamAssassin client application instead of the Perl script,
place the following line near the top of the
place it in
/etc/procmailrc
INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc

5. Mail User Agents

There are scores of mail programs available under Red Hat Enterprise Linux. There are
file:
) and client application (
spamd
system-config-services
~/.procmailrc
:
contains a simple Procmail rule
). Configuring SpamAssassin this
spamc
), to turn on the
for more information about initscript utilities.
file. For a system-wide configuration,
Mail User Agents
.
spam
spamassassin
207

Advertisement

Table of Contents
loading

Table of Contents