This is my first How to, I just did this on Ensim 4.0.3 with spamassassin 3.x upgrade already done. I copied the steps I used to get razor2 working, Next DCC
This does not report spam back to razor2 as the reporting tools are not installed, The only thing installed is the perl modules required for spamassassin to check the razor2 database ( to my knowledge )
1. Install razor2
Download the razor-agents file from http://razor.sourceforge.net, extract it to a temporary directory (/usr/local/src/razor-agents for this example), and install it as follows (replacing paths as necessary):
cd /usr/local/src/razor-agents
perl Makefile.PL
make
make test
make install
/usr/bin/razor-client
/usr/bin/razor-admin -register
2. Copy razor2 to ensim TEMPLATE
cp -ax /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Razor2/ /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/
cp -ax /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Razor2 /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/
Copy the same files to each site, someone could prob throw together a quick script for that
Login to one of your sites and run
spamassassin --lint -D
You should see a ton of new information, what your looking for is
Razor-Log: Computed razorhome from env: /home/cyberlot/.razor
Razor-Log: Found razorhome: /home/cyberlot/.razor
Razor-Log: No /home/cyberlot/.razor/razor-agent.conf found, skipping.
Razor-Log: No razor-agent.conf found, using defaults.
And near the end
Mar 07 09:51:18.768818 check[23253]: [ 7] method 4: mail 1.0: no-contention part, spam=0
Mar 07 09:51:18.768935 check[23253]: [ 7] method 4: mail 1: all non-contention parts not spam, mail not spam
Mar 07 09:51:18.769040 check[23253]: [ 3] mail 1 is not known spam.
No promise is made, No changes to any configs are made so there should be very low risk, spamassassin should just see the modules exist and use them
If you want to tweak the razor settings on a per user basis you will need to add
/home/USERNAME/.razor/razor-agent.conf
To the account in question
--- UPDATED 03/18/05 Ensims Spamassassin hotfix broke razor ---
The ensim upgrade moves some important perl modules, you will need to reinstall razor to get spamassassin working after the upgrade..