How to install and configure Pyzor for spam scoring in SpamAssassin on Plesk Obsidian.
There are some tutorials about installing Pyzor on Plesk’s SpamAssassin, but they are either very outdated, too long or require payment. First make sure you have a basic understanding of shell usage and SpamAssassin is already installed from Plesk and working. This howto is written for CentOS but it should work similar on other systems, just adapt the commands to your OS.
Tested on Plesk 17.8 Onyx and 17.9 Obsidian.
sudo su - root
yum install pyzor
echo 'public.pyzor.org:24441' > /etc/mail/spamassassin/pyzor/servers
use_pyzor 1 pyzor_options --homedir /etc/mail/spamassassin/pyzor pyzor_path /usr/bin/pyzor add_header all Pyzor _PYZOR_ # Pyzor is not perfect, there are false-positives. I use a # spam threshold of 5 points, so with 3 points Pyzor weighs # in heavily but is not decisive. score PYZOR_CHECK 3
systemctl restart spamassassin.service