SpamAssassin - Pyzor

最後更新: 2018-01-17

介紹

 

Pyzor is a completely free database and software HashSharingSystem, written by Frank Tobin.

HomePage: https://pypi.python.org/pypi/pyzor/

 


Install

 

準備

yum -y install python-setuptools

cd /usr/src

wget https://pypi.python.org/packages/75/9d/e38a18d8c932f397537cda0d03a606314...

tar -zxf pyzor-1.0.0.tar.gz

cd pyzor-1.0.0

python setup.py build

python setup.py install

 


spamassassin config

 

/etc/mail/spamassassin/v310.pre

# Pyzor - perform Pyzor message checks.
loadplugin Mail::SpamAssassin::Plugin::Pyzor

/etc/mail/spamassassin/local.cf

#### pyzor
use_pyzor 1
pyzor_path /usr/bin/pyzor
score PYZOR_CHECK 3.000

 


CLI

 

ping

pyzor ping

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

check

# Checks the message read from stdin and prints the number of times it has been reported and
# the number of time it has been whitelisted.

pyzor check < spam.eml

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

# Info

Prints detailed information about the message.

pyzor info < spam.eml

# Report Spam

pyzor report < spam.eml

Reports to the server a digest of each message as spam.
public.pyzor.org:24441      (200, 'OK')

# Whitelist

Reports to the server a digest of each message as not-spam.

pyzor whitelist < spam.eml

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

# Predigest

Prints the message after the predigest phase of the pyzor algorithm:

$ pyzor predigest < spam.eml

Thisisatest.

# Digest

Prints the message digest, that will be sent to the server:

$ pyzor digest < spam.eml

c3a8e8d987f07843792d2ab1823b04cc3cb87482

# Local Whitelist

# returning 0 reports for the digest without contacting the pyzor server

pyzor local_whitelist < false_positive.eml

pyzor local_unwhitelist < false_positive.eml

# A list of servers that will be contacted by the Pyzor client for every operation.

~/.pyzor/servers

 


DOC

 

http://www.pyzor.org/en/release-1-0-0/

 


 

 

 

Creative Commons license icon Creative Commons license icon