Dave's Brain

Browse - computer tips - spamassassin with postfix

Date: 2007oct21

Q. How do I setup SpamAssassin for Postfix on my Fedora box?

A.

Install it.  Like this:

	# yum install spamassassin

Tweak the configuration.
Make a user for it to run as:

	# useradd spamd
	# chsh -s /sbin/nologin spamd

Modify the config file (/etc/sysconfig/spamassassin) so it runs as this user:

	SPAMDOPTIONS="-u spamd -d -c -m5 -H"
                      ^^^^^^^^ insert this

Make it run all the time:

	# chkconfig --level 2345 spamassassin on

Start it:

	# service spamassassin start

Now the SpamAssassin daemon is up and running.  

Then there are a number of guide for hooking it into Postfix.
I liked this one the best:
http://www.xnote.com/howto/postfix-spamassassin.html
because it is nice and simple.

More Info:
http://www.davekb.com/search.php?target=spamassassin

Add a comment

Sign in to add a comment
Copyright © 2008, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.