SpamAssassin installation
SpamAssassin installation is very simple. Just being as root run cpan installation:
perl -MCPAN -e shell
install Mail::SpamAssassin
quit
SpamAssassing can be run by two ways - from command line or as small C client that connects to SpamAssassin
daemon. It speeds up about 4 times for regular messages.
To run SpamAssassin as daemon, you need to create startup script. at RedHat systems, it's /etc/init.d/spamd.
You can take it at
http://smartcgi.com/dist/postfix/init.d/spamd.
Also, to get Razor2 working correctly you need to apply a patch coming with SpamAssassin or you can take
it at
http://smartcgi.com/dist/postfix/patches. Copy this patch to your perl libraries' location, to Razor2 directory.
At ReadHat, it looks like following:
cp Razor2.patch /usr/lib/perl5/site_perl/5.6.1/i386-linux/Razor2
cd /usr/lib/perl5/site_perl/5.6.1/i386-linux/Razor2
patch -p0 < Razor2.patch
At /etc/mail/spamassassin/local.cf you need to have following 2 lines:
rewrite_subject 1 # add SPAM word into subject of rewritten message
report_safe 2 # attach original message to rewritten message
At Redhat, add user 'spam' and add it into startup level by this way:
adduser -s /sbin/nologin spam
chkconfig --add spamd
chkconfig spamd on
/etc/init.d/spamd start
List of content
- Introduction
- Misc software installation
- Antivirus software
- Antispam - SpamAssassin installation
- Postfix installation
- COPYRIGHT
|