spamassassin, installing pyzor

openSuse 42.3


search pyzor

click on “pyzor”

click on “opensuse 42.3”

click on “display unstable packages”

in line “server:mail” click on “1 click install”

this must open a windows inviting you to do a 1 click install with yast. select it then ok

then follow the assistant

Modify /etc/mail/spamassassin/, add:

# pyzor
pyzor_path /usr/bin/pyzor

Modify /etc/mail/spamassassin/v310.pre, uncomment:

loadplugin Mail::SpamAssassin::Plugin::Pyzor

Check your Spamassassin configuration

in root console execute

spamassassin --lint

with service management tool

stop and start spamd
check spamd started with no error

in root console execute

spamassassin -t -D pyzor < /usr/share/doc/packages/perl-Mail-SpamAssassin/sample-spam.txt

check there is no error

and you must find

dbg: pyzor: got response: (200, 'OK') 0 3

inspired from…il-server.html

i forget an important info

with kmail anti-spam installation assistant you have the choice to use

  • spamassassin (perl executable)
  • spamc/spamd (spamassassin daemon)

by default

  • spamassassin in kmail spamassassin filters installation
  • spamd yast installation

does not execute any network check thus does not execute in particular dcc , pyzor , razor.

why executing network checks ?

If you don’t then you must wait for spamassassin learning 3000 spams and 3000 hams before to be efficient ! one or 2 years or more for a personal use !

How to activate network checks ?

if you use spamassassin in kmail filter
in kmail filter “spam detection”
search the statement

spamassassin -L

then delete “-L”

if you use spamd via spamc in kmail filter
in /etc/sysconfig/spamd file
search the statement

SPAMD_ARGS="-d -c -L"

then delete “-L”
restart spamd with yast service management tool