[Mimedefang] How to install Razor

Link, Pete plink at fna.com
Thu May 29 11:39:01 EDT 2003


How do I configure razor on a fully developed mimedefang spamassassin
server?

I have a fully functional server, but no razor is installed.  How do I
install Razor?

How is this done???  Here are my notes as an FYI to all:

cd /usr/local/src/sendmail-defang/razor
tar xvfz razor-agents-sdk-2.03.tar.gz
tar xvfz razor-agents-2.34.tar.gz
cd razor-agents-sdk-2.03
perl Makefile.PL
make
make test
make install

cd /usr/local/src/sendmail-defang/razor
cd razor-agents-2.34
perl Makefile.PL
make
make test
make install

Test install:
razor-client

Config razor:
razor-admin -create
razor-admin -register -user=abc at abc.com -pass=somedarnpassword

add to iptables:
-A OUTPUT -o eth0 -p tcp -m tcp --dport 2703 -j ACCEPT
service iptables stop
service iptables start

Now reinstall Spamassassin:
-Prepare for installation:
	-download from: http://www.spamassassin.org
-backup your entire /etc/mail directory:  cp -r * backup
-backup your entire /usr/local/bin directory:  cp -r * backup
-backup your enteir /usr/local/sbin directory:  cp -r * backup

Install Spamassassin 2.54:
-move your Mail-SpamAssassin-2.54.tar.gz to /usr/local/src/sendmail-defang
-cd /usr/local/src/sendmail-defang
-untar the file:  tar xvfz Mail-SpamAssassin-2.54.tar.gz
-move your install file into your newly created directory:
mv Mail-SpamAssassin-2.54.tar.gz Mail-SpamAssassin-2.54
-cd Mail-SpamAssassin-2.54
-perl Makefile.PL
-make
-make test
-make install

Customize Spamassassin:
-rm -rf /etc/mail/spamassassin/local.cf

vi sa-mimedefang.pl
change/add the following:
	skip_rbl_checks 1 (I don't want to check the RBL lists - this might
create too many false positives)
	use_razor2      1

Change mimedefang-filter:
cd /etc/mail/
add the following: $SALocalTestsOnly = 0; to mimedefang-filter

Test Razor:
cd /usr/local/src/sendmail-defang/Mail-SpamAssassin-2.55
spamassassin -t < sample-spam.txt

NOTE:
If you are Upgrading Spamassassin to a newer version and you have any custom
rules.  Please follow these procedures:

-Check to see if you have any custom rules, these should be located in
/etc/mail/spamassassin/
-ours is called 20_mre.cf, it appears as such:
-change the VERSION number to whatever version of Spamassassin you just
installed
	
###########################################################################

require_version 2.54

###########################################################################

Thanks you,

Pete Link
MRE Consulting
pete at mre.net




More information about the MIMEDefang mailing list