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
file:
INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc
The
/etc/mail/spamassassin/spamassassin-default.rc
contains a simple Procmail rule
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
spam
.
Since SpamAssassin is a Perl script, it may be necessary on busy servers to use the binary
SpamAssassin daemon (
spamd
) and client application (
spamc
). Configuring SpamAssassin this
way, however, requires root access to the host.
To start the
spamd
daemon, type the following command as root:
/sbin/service spamassassin start
To start the SpamAssassin daemon when the system is booted, use an initscript utility, such as
the Services Configuration Tool (
system-config-services
), to turn on the
spamassassin
service. Refer to
Section 4.2, “Runlevel Utilities”
for more information about initscript utilities.
To configure Procmail to use the SpamAssassin client application instead of the Perl script,
place the following line near the top of the
~/.procmailrc
file. For a system-wide configuration,
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
Mail User Agents
207
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......