Results 1 to 3 of 3

Thread: spamassassin, installing razor

  1. #1

    Default spamassassin, installing razor

    openSuse 42.3



    with software management tool install package perl-razor-agents

    then

    as root execute :
    mkdir /etc/mail/spamassassin/.razor
    razor-admin -home=/etc/mail/spamassassin/.razor -register
    razor-admin -home=/etc/mail/spamassassin/.razor -create
    razor-admin -home=/etc/mail/spamassassin/.razor -discover


    Add the following to /etc/mail/spamassassin/local.cf:

    # razor
    razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

    be sure in /etc/mail/spamassassin/310.pre that
    loadplugin Mail::SpamAssassin::Plugin::Razor2
    is uncommented

    use service management tool to stop then start spamd

    with service management tool check that spamd started without error

    in root console execute
    spamassassin -t -D razor2 < /usr/share/doc/packages/perl-Mail-SpamAssassin/sample-spam.txt
    check that
    - razor home path is well found
    - razor conf file razor-agent.conf is well found
    - you must find this type of line
    Jan 27 09:08:59.116 [32462] dbg: razor2: razor2 is available, version 2.84
    Razor-Log: read_file: 16 items read from /etc/mail/spamassassin/.razor/razor-agent.conf
    Razor-Log: Found razorhome: /etc/mail/spamassassin/.razor
    ...

    dbg: razor2: results: spam? 0
    ...
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

  2. #2

    Default Re : spamassassin, installing razor

    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
    or
    - 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
    then
    in kmail filter "spam detection"
    search the statement

    Code:
    spamassassin -L
    then delete "-L"

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

    Code:
    SPAMD_ARGS="-d -c -L"
    then delete "-L"
    then
    restart spamd with yast service management tool
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

  3. #3

    Default Re : spamassassin, installing razor

    i forgot you must install razor-agents packet
    according to get tool as razor-admin etc.
    OpenSuse Argon 15.1 x86_64,Asus Prime 250M-A, Intel Core i5-7400, 16 GB, Intel HD Graphics 630, Plugable usb-bt4le bluetooth 4.0 usb adapter, multicard reader USB 3.0 startech.com 35fcreadbu3, HP LaserJet 1220, Headset bluetooth 3.0 Philips SHQ7300

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •