Skip to main content

How to Install Pyzor on CentOS Web Panel for Postfix/Dovecot ?

Pyzor is a collaborative, networked system to detect and block spam using digests of messages.Using Pyzor client a short digest is generated that is likely to uniquely identify the email message. This digest is thensent to a Pyzor server to:
  • check the number of times it has been reported as spam or whitelisted as not-spam
  • report the message as spam
  • whitelist the message as not-spam
Since the entire system is released under the GPL, people are free to host their own independent servers. There is,however, a well-maintained and actively used public server available (courtesy of SpamExperts) at:
public.pyzor.org:24441
Open the following port in your firewall:
UDP 24441 Outgoing : Pyzor
TCP 24441 Incoming : Pyzor

Pyzor RPM Sources:
1. ftp://mirror.switch.ch/pool/4/mirror/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm [This will not work ]
2. http://209.132.181.8/pub/archive/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm [ Use This ]
Pyzor Installation
# rpm -Uvh http://209.132.181.8/pub/archive/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm

Enable the Pyzor plugin
# vi /etc/mail/spamassassin/v310.pre
# Pyzor - perform Pyzor message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Pyzor
Add the following to /etc/mail/spamassassin/local.cf
# pyzor
use_pyzor 1
pyzor_options --homedir /etc/mail/spamassassin/.pyzor
pyzor_path /usr/bin/pyzor
score PYZOR_CHECK 3.000
N.B: you can use header to Pyzor: add_header all Pyzor _PYZOR_ 
Discover the Pyzor Home Directory
# pyzor --homedir /etc/mail/spamassassin/.pyzor discover
  downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x
Restart
# systemctl restart spamassassin
Test
# spamassassin -t -D pyzor < /usr/share/doc/spamassassin-3.4.0/sample-spam.txt
Pyzor RPM Source:
http://209.132.181.8/pub/archive/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/
Pyzor Documentation : https://readthedocs.org/projects/pyzor/downloads/pdf/latest/
Sourceforge : https://sourceforge.net/projects/pyzor/
GitHub : https://github.com/SpamExperts/pyzor
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1288853

You can use Header :
# pyzor
use_pyzor 1
pyzor_options --homedir /etc/mail/spamassassin/.pyzor
pyzor_path /usr/bin/pyzor
add_header all Pyzor _PYZOR_ 
score PYZOR_CHECK 3.000

Comments