Results 1 to 3 of 3

Thread: DCC+razor2+pyzor how to

  1. #1
    Join Date
    Sep 2006
    Location
    Larisa, Greece
    Posts
    236

    DCC+razor2+pyzor how to

    Hi, a small how to for dcc+razor+pyzor for spamassassin

    cd /usr/ports/mail/razor-agents
    make install
    cd /usr/ports/mail/pyzor
    make install
    cd /usr/ports/mail/dcc-dccd
    make install

    vi /etc/rc.conf
    ---------------------------------------------
    dccifd_enable="YES"
    dccifd_flags="-A -h /usr/local/dcc"
    ---------------------------------------------

    cd /etc/mail/spamassassin
    mkdir .razor
    mkdir .pyzor

    pyzor --homedir /etc/mail/spamassassin/.pyzor discover

    razor-admin -create -home /etc/mail/spamassassin/.razor/
    razor-admin -discover -home /etc/mail/spamassassin/.razor/
    razor-admin -register -home /etc/mail/spamassassin/.razor/

    vi local.cf
    ---------------------------------------------------
    use_dcc 1
    dcc_timeout 10
    dcc_home /usr/local/dcc
    dcc_dccifd_path /usr/local/dcc/dccifd

    use_razor2 1
    razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

    use_pyzor 1
    pyzor_options --homedir /etc/mail/spamassassin/.pyzor

    add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES(,)_ _DCCR_ _PYZOR_ _RBL_ autolearn=_AUTOLEARN_ version=_VERSION_
    --------------------------------------------------

    check that
    loadplugin Mail::SpamAssassin::Plugin:CC
    loadplugin Mail::SpamAssassin::Plugin::Pyzor
    loadplugin Mail::SpamAssassin::Plugin::Razor2
    are uncommented in the .pre files in /etc/mail/spamassassin/ directory

    cd /usr/local/dcc
    vi dcc_conf
    check these values :

    DCCD_ENABLE=on
    DNSBL_ARGS="'-Bset:rej-msg=5.7.1 550 mail %s from %s rejected; see http://www.spamhaus.org/xbl/' -Bsbl-xbl.spamhaus.org,any"
    DCCIFD_ENABLE=on
    DCCM_ENABLE=off

    vi /etc/crontab
    ------------------------------------------
    25 1 * * * root /usr/local/dcc/libexec/cron-dccd 2>&1
    ------------------------------------------
    /usr/local/etc/rc.d/dccifd start
    ps auxw |grep dcc to see if deamon runs or we forgot something
    /usr/local/etc/rc.d/sa-spamd restart
    ps auxw |grep spam to see if deamon runs or we forgot something

    tail -f /var/log/mailog to see the log of the spamd restart

    log in your squirrel and check view full header of an email
    copy all that you see

    cd /tmp
    vi test
    paste and add at the bottom the word test or something

    spamassassin -D <test 2>debug

    vi debug
    search for
    [57380] dbg: dcc: dccifd is available: /usr/local/dcc/dccifd
    [57380] dbg: info: entering helper-app run mode
    [57380] dbg: dcc: dccifd got response: X-DCC-CTc-dcc2-Metrics: server 1031; Body=0

    [57380] dbg: razor2: part=0 engine=4 contested=0 confidence=0
    [57380] dbg: razor2: results: spam? 0
    [57380] dbg: razor2: results: engine 8, highest cf score: 0
    [57380] dbg: razor2: results: engine 4, highest cf score: 0

    [57380] dbg: util: executable for pyzor was found at /usr/local/bin/pyzor
    [57380] dbg: pyzor: pyzor is available: /usr/local/bin/pyzor
    [57380] dbg: info: entering helper-app run mode
    [57380] dbg: pyzor: opening pipe: /usr/local/bin/pyzor --homedir /etc/mail/spamassassin/.pyzor check < /tmp/$

    to see if working...
    I hope that i didnt forget anything, if have probles post a reply..

  2. #2
    Join Date
    Jan 2009
    Location
    Indonesia
    Posts
    24
    Is there anychance that this howto can be implemented in Centos x64? and be more detail.

  3. #3
    Join Date
    Sep 2006
    Location
    Larisa, Greece
    Posts
    236
    It isn't something too difficult.

    you have to replace this section :

    cd /usr/ports/mail/razor-agents
    make install
    cd /usr/ports/mail/pyzor
    make install
    cd /usr/ports/mail/dcc-dccd
    make install

    with cent os style of installing software, or by source.
    and just change the paths, for example dcc in my conf is under /usr/local/dcc in your installation may be somewhere else...
    always RTFM at the end.

Posting Permissions

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