(NOTE: this is part of the “An Anti-Spam gateway” series)
Installing SpamAssassin isn’t too hard, thanks to Perl‘s CPAN.
First, type the following:
perl -MCPAN -e shell
If it’s the first time you do that, it will ask you a bunch of questions. Accept the defaults, and when asked about where to download from, try to pick a couple of places near you. When you finally get to the command prompt, it’s time to install the modules.
Now, we could simply tell it to install SpamAssassin, and it would install all the required modules for it. But we’ll want to install some optional ones as well, so, do the following (one at a time, naturally), saying “yes” whenever it asks you if you want to install a pre-requisite (note, also, that some of the modules may already be installed – if so, just move on to the next one):
install MIME::Base64
install DB_File
install Net::DNS
install Net::SMTP
install DBI
install LWP
install Compress::Zlib
install IO::Zlib
install Archive::Tar
install Mail::SpamAssassin
There are 2 still missing, related to MySQL, but we haven’t installed MySQL yet, so… just type quit
to exit the CPAN shell.
Onward to Razor, in the next part.
Copyright © 2013 The Tlog - a technology blog