Install Pyzor
From Qmailtoaster
Install Pyzor
Jake Vickers <jake@v2gnu.com> September 19, 2006 Scott Hughes - Updated - June 9, 2009
"Pyzor is a collaborative, networked system to detect and block spam using identifying digests of messages."
(from the Pyzor website: http://pyzor.sourceforge.net/)
Installing Pyzor is rather easy. You need to have python installed first. Here are the steps to install from source:
Download pyzor from Sourceforge (http://sourceforge.net/projects/pyzor/files/pyzor/0.5.0/pyzor-0.5.0.tar.bz2/download).
wget http://kent.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.5.0.tar.bz2
Unpack the package:
tar xjvf pyzor-0.5.0.tar.bz2
Move into the dir:
cd pyzor-0.5.0
Download patches from http://antispam.imp.ch/08-opensource.html?lng=0:
wget http://antispam.imp.ch/patches/patch-pyzor-debian-mbox patch -p0 -b -Vt < patch-pyzor-debian-mbox wget http://antispam.imp.ch/patches/patch-pyzor-handle_unknown_encodings patch -p0 -b -Vt < patch-pyzor-handle_unknown_encodings wget http://antispam.imp.ch/patches/patch-pyzor-unknowntype patch -p0 -b -Vt < patch-pyzor-unknowntype
Run the setup process:
python setup.py build python setup.py install pyzor discover
The 'pyzor discover' command tells pyzor to contact home and find the latest list of servers to use. I add this to a cron to be run nightly:
17 2 * * * pyzor discover
Make sure that pyzor is enabled in your /etc/mail/spamassassin/v310.pre file:
# Pyzor - perform Pyzor message checks. # loadplugin Mail::SpamAssassin::Plugin::Pyzor
And then make sure that spamassassin is going to use Pyzor as a check:
echo "use_pyzor 1" >> /etc/mail/spamassassin/local.cf
Now check to make sure it shows. Note: You will frequently show a timeout on Pyzor. This is normal - the server is very busy.
spamassassin -D --lint
And that's it.
Some more tips for Pyzor:
The default server will timeout 50% of the time. Google to find another server to use - most do NOT allow high volume servers to check against theirs. If you find some that DO allow this, please post them here for the rest of us!
IP:Port | Last Verified | Where Found |
---|---|---|
82.94.255.100:24441 | 11/20/2006 | http://www.nabble.com/Pyzor-issue-since-upgrade-to-3.1.3-t1742083.html |
<new ip:port> | <new date> | <new URL> |