Using Spamassassin on Debian/Ubuntu
Install Spamassasin using the following:
apt-get install spamassassin spamc
Configuring Postfix to use Spamassasin. In “/etc/postfix/master.cf”, change this:
smtp inet n - - - - smtpd
To be this:
smtp inet n - - - - smtpd
-o content_filter=spamassassin
Add this to the end of “/etc/postfix/master.cf”:
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
The reload Postfix:
/etc/init.d/postfix reload
Start and stop the Spam Assassin daemon on Linux. You need to be root to do this.
/etc/init.d/spamassassin start
/etc/init.d/spamassassin stop
Sometimes you must replace “spamassassin” in the above with “spamd”.
"