pyzor

networked system to detect and block spam using digests of messages.

pyzor [options] command

Read data from stdin and execute the requested one of

ping
pyzor ping
public.pyzor.org:24441      (200, 'OK') 
 
check 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')     134504  4681 
report
pyzor report < spam.eml
public.pyzor.org:24441      (200, 'OK') 
pong
pyzor pong < ham.eml
public.pyzor.org:24441  (200, 'OK')     9223372036854775807     0 
digest
pyzor digest < spam.eml
c3a8e8d987f07843792d2ab1823b04cc3cb87482 
predigest
pyzor predigest < test.eml
Thisisatest.
genkey Based upon a secret passphrase gathered from the user and randomly gathered salt, outputs to standard output a tuple of 'salt,key'. Used to put account information into the accounts file.
local_whitelist Add a message to the local whitelist file, and therefore ignoring the digest and returning 0 reports for the digest without contacting the pyzor server:
 
$ pyzor local_whitelist < false_positive.eml
local_unwhitelist. Remove a message from the local whitelist file:
pyzor local_unwhitelist < false_positive.eml 
-n NICE
--nice=NICE
'nice' level
--homedir=HOMEDIR configuration directory
-s style
--style=STYLE
input style:
  • msg individual RFC5321 message
  • mbox mbox file of messages
  • digests Pyzor digests, one per line.
  • --log-file=LOGFILE name of log file
    --servers-file=SERVERSFILE name of servers file
    --accounts-file=ACCOUNTSFILE name of accounts file
    --local-whitelist=LOCALWHITELIST name of the local whitelist file
    -t TIMEOUT
    --timeout=TIMEOUT
    timeout (in seconds)
    -r REPORTTHRESHOLD
    --report-threshold=REPORTTHRESHOLD
    threshold for number of reports
    -w WHITELISTTHRESHOLD
    --whitelist-threshold=WHITELISTTHRESHOLD
    threshold for number of whitelist
    -d
    --debug
    enable debugging output
    -h
    --help
    show this help message and exit
    -V
    --version

    install

    pip install pyzor as per Pyzor.org

    For the real deal see https://www.pyzor.org/en/latest/index.html