Consider installting PyZOR if you have already installed Razor or DCC. You should already have a working copy of MailScanner installed and Spamassassin.

Requirement: You must have python2.2.2 or python2-2.2.2 installed on your server in order to install PyZor. In other words, you must be running RH 7.3, 8.0, 9.0 and above in order to install Pyzor. At this time i have not found a solution that allows installation of PyZor on RH 7.1 and 7.2 since both are running python-1.5.2-43.72 & python2-2.1.1-3.72 respectivly.


The gdbm module is required for Pyzor’s operation. Make sure its installed on your server;
Type: python -c 'import gdbm' && echo 'gdbm found'
If you get a “gdbm found”, you’re all set.
If not, run:
yum install gdbm

If you are running a firewall, open UDP inbound/outbound on port 24441, first!

1) Download Pyzor to a working directory. I use /usr/local/src.
wget http://easynews.dl.sourceforge.net/sourcef...r-0.4.0.tar.bz2

2) Unarchive;
Type: bunzip2 pyzor-0.4.0.tar.bz2 or
/usr/bin/bunzip2 pyzor-0.4.0.tar.bz2 if you get an error.

3) Untar
Type: tar -xvf pyzor-0.4.0.tar

5) Cd to the installation directory
Type: cd pyzor-0.4.0

6) Build Pyzor - BUILD
For Redhat 7.3 please build using this command;
Type: python2 setup.py build

For Redhat 8.0, 9.0 and above use;
Type: python setup.py build

7) Install Pyzor - INSTALL
For Redhat 7.3 please install using this command;
Type: python2 setup.py install

For Redhat 8.0, 9.0 and above use;
Type: python setup.py install

icon_cool.gif Ensure the perms are correct after installation;
Type: chmod -R a+rX /usr/share/doc/pyzor /usr/lib/python2.2/site-packages/pyzor /usr/bin/pyzor /usr/bin/pyzord

9) Ask Pyzor to find / discover the PyZor server;
Type: pyzor discover
This creates a file named servers in the /root/.pyzor/ directory. View the /root/.pyzor/servers file to ensure the PyZor server has been properly identified.

10) Modify spam.assassin.prefs.conf in your MailScanner directory by adding the Pyzor scores and config settings;

11) Open UDP ports 24441 Inbound/Oubound on your firewall.

Add: pyzor_path /usr/bin/pyzor
Add: score PYZOR_CHECK 6.0

Adjust the PYZOR_CHECK score to any number you wish to assign.

11) Ensure Pyzor is enabled in /etc/mail/spamassassin/v310.pre or whatever the directory path to your v310.pre file is. Its commented out by default in v310.pre so make sure PyZor is uncommented in v310.pre before restarting exim.

12) Restart MailScanner, Exim then tail -f /var/log/maillog and watch to make sure PyZOR is working properly. Not every message will reveal a PyZor check so you may need to watch maillog for awhile till you see a valid lookup.

-EOF icon_smile.gif