Setup Pyzor on SpamAssassin

Download and Install Pyzor

First, read the page Using Pyzor in SpamAssassin.

Then, download Pyzor from sourgeforge.net. Unarchive the tar ball, and follow the instructions in INSTALL file inside the source tree.

There is a usage file in the source tree. Or you can read it from online.

Adjust Firewall

You have to open firewall to allow download from TCP pyzor.sourceforge.net:80. After you have downloaded the pyzor server list by doing

# pyzor --homedir /etc/mail/spamassassin discover
# cat /etc/mail/spamassassin/servers

you will have to download from both TCP and UDP in the servers and ports listed in the file /etc/mail/spamassassin/servers.

Test Pyzor

To see if you can connect to the pyzor servers, do

# pyzor ping

This should return

public.pyzor.org:24441    (200, 'OK')

Next, you can test like this:

# echo "test" | spamassassin -D pyzor 2>&1 | less