Once You Know, You Newegg
Home FAQ SpamAssassin Installing and Configuring Razor and Pryzor
Installing and Configuring Razor and Pryzor PDF Print E-mail
Written by Administrator   
Tuesday, 07 April 2009 01:18
How to install Dcc:

# echo "WITHOUT_SENDMAIL=yes" >> /etc/make.conf
# cd /usr/ports/mail/dcc-dccd
# make install clean

Now lets install Pyzor

# cd /usr/ports/mail/pyzor
# make install clean

When the popup box comes up, Hit Tab and hit Enter on the Keyboard.

And last we need to install Razor Agents

# cd /usr/ports/mail/razor-agents
# make install clean

You will now need to create a config file for razor using a non-root
account. Substitute test with a real non-root user on your system:

# su test
# razor-admin -create (It should just drop to the next line)
# exit

We now need to register razor with the Razor servers. Replace the test
user with the actual username you used above to create the razor
account. Type in a password and hit enter.

# razor-admin -register -user=test -pass yourpass -home=/home/test/.razor

If successful, it should say:

Register successful.  Identity stored in /home/user/.razor/identity-user

You can now integrate razor with SpamAssassin. Lets backup your local.cf first:

# cd /usr/local/etc/mail/spamassassin
# cp local.cf baklocal.cf

Now add/modfy the following to local.cf . Again, Replace the test user with
the actual username you used above to create the razor account.

razor_config /home/test/.razor/razor-agent.conf
loadplugin Mail::SpamAssassin::Plugin::DCC
dcc_path /usr/local/bin/dccproc
pyzor_path /usr/local/bin/pyzor
score PYZOR_CHECK 1  

We now need to create the /var/dcc folder

# mkdir /var/dcc
# chown qscand:qscand /var/dcc
# chmod 755 /var/dcc

Just to make sure everything is running correctly, run:

# spamassassin --lint

And fix any errors that come up!

We're done!
Last Updated on Sunday, 31 May 2009 22:02