Title: Configure Spamassassin
Course: CIS 208: Linux/UNIX III: Intermediate System Administration, Networking, and Security ~ For IGNITE Review > Section: Learning Modules

Configure Spamassassin

Spamassassin is the premier open source mail filtering program, and it is the engine behind many proprietary spam abatement programs and services.

- The following commands with install and enable spamassassin on a Red Hat derivative distribution.

yum install spamassassin

- A user and group will need to be created to run the spamassassin daemon.

groupadd spamd
useradd -g spamd -s /bin/false

- Add a single line to /etc/procmailrc to enable use of the spamassassin daemon.

echo INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc >> /etc/procmailrc

- Update the spamassassin database and reload postfix.

sa-update
service spamassassin restart
service postfix reload

See the spamassassin website for more information about managing the filter.  For example, it may be desirable to fine tune the filtering policies or to create whitelists which ensure delivery of email from specific senders.