All HowTo's Cybersecurity Linux Redhat, Fedora and CentOS Linux

Install Spamassassin on CentOS & Redhat

This article demonstrates how to install Spamassassin on a CentOS or Redhat server. We’re starting with a working Postfix server.

Start by installing Spamassassin with Yum:

yum install spamassassin
useradd spamd

Add the following to the “/etc/postfix/” file. Add the following to the end of the first non-remarked line:

-o content_filter=spamassassin

Add the following to the end of the “/etc/postfix/master” file:

spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Enable and restart Spamassassin:

service spamassassin restart
chkconfig spamassassin on

And restart Postfix:

service postfix restart

Leave a Reply

Your email address will not be published. Required fields are marked *