Install Procedure

Here are instructions to install the full Spamassassin stack on RHEL, CentOS, Fedora, Debian and Ubuntu.  After you have followed these steps, proceed to the Ultimate Setup Guide for tweaking instructions.

RHEL, CentOS, Scientific Linux
See this page for instructions.

Fedora

  1. yum install spamassassin pyzor perl-Razor-Agent perl-Mail-SPF
  2. chkconfig spamassassin on
  3. service spamassassin restart

Debian 5.0 (Lenny)

  1. apt-get update
  2. apt-get install spamassassin pyzor razor
  3. Debian 5.0 has spamassassin-3.2.5 when you want spamassassin-3.3.x.  Follow the next steps to upgrade from backports.org.
  4. echo deb http://backports.debian.org/debian-backports lenny-backports main > /etc/apt/sources.list.d/backports.list
  5. apt-get -t lenny-backports install spamassassin libio-socket-ssl-perl libdbi-perl libcompress-zlib-perl libmail-dkim-perl spamc libmail-spf-perl re2c libsys-syslog-perl gcc libc6-dev make libio-socket-inet6-perl libnet-libidn-perl
  6. Edit /etc/default/spamassassin and set ENABLED=1
  7. /etc/init.d/spamassassin restart

Ubuntu 10.04 LTS

  1. apt-get install spamassassin
  2. apt-get install libmailtools-perl libhtml-format-perl spamc libmail-spf-perl re2c gcc libc6-dev libio-socket-inet6-perl
  3. apt-get install libcrypt-ssleay-perl libio-socket-ssl-perl razor libnet-ident-perl libdbi-perl pyzor libmail-dkim-perl
  4. Edit /etc/default/spamassassin and set ENABLED=1
  5. /etc/init.d/spamassassin restart