Execute everything highlighted.
If you are running a firewall, open UDP inbound/outbound on port 24441, first!
1) Install Pyzor via ports;
cd /usr/ports/mail/pyzor
make install
2) Ensure the perms are changed. Failing to do this will result in failed Pyzor lookups.
chmod -R a+rX /usr/local/share/doc/pyzor /usr/local/lib/python2.4/site-packages/pyzor /usr/local/bin/pyzor /usr/local/bin/pyzord
3) While still in the /usr/ports/mail/pyzor directory 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.
chown -R mailnull:mail /root/.pyzor
If you are running .spamassassin from /var/spool/mqueue/ you should move the .pyzor directory from /root to /var/spool/mqueue/
cd /root
mv .pyzor /var/spool/mqueue
chown -R mailnull:mail /var/spool/mqueue/.pyzor
4) Modify spam.assassin.prefs.conf in your MailScanner directory by adding the Pyzor scores and config settings;
pyzor_path /usr/local/bin/pyzor
score PYZOR_CHECK 6.0
Uncomment the pyzor_timout setting if its commented out.
Adjust the PYZOR_CHECK score to any number you wish to assign.
5) 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.
6) Restart MailScanner, Exim then tail -f /var/log/exim/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