Dave's Brain

Browse - Computer Tips - How do I setup SpamAssassin for Postfix on my Fedora box?

Date: 2007oct21
OS: Linux
Distro: RedHat/Fedora/CentOS

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

A.

Install it.  Like this:

# dnf 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:
# systemctl start spamassassin
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-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.