Setting up razor - SpamAssassin

This is a discussion on Setting up razor - SpamAssassin ; Any idea what is wrong here? I am trying to set up razor on my system. It is a shared system where I do not have root access. peloruso@pelorus.org [~]# razor-admin -d -create Razor-Log: Computed razorhome from env: /home/peloruso/.razor Razor-Log: ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Setting up razor

  1. Setting up razor

    Any idea what is wrong here? I am trying to set up razor on my system.
    It is a shared system where I do not have root access.

    peloruso@pelorus.org [~]# razor-admin -d -create
    Razor-Log: Computed razorhome from env: /home/peloruso/.razor
    Razor-Log: Found razorhome: /home/peloruso/.razor
    Razor-Log: read_file: 15 items read from
    /home/peloruso/.razor/razor-agent.conf
    Razor-Log: -create will force complete discovery
    Sep 06 09:25:28.578010 admin[5746]: [ 2] [bootup] Logging initiated
    LogDebugLevel=9 to stdout
    Sep 06 09:25:28.578010 admin[5746]: [ 6] Not creating razorhome
    /home/peloruso/.razor, already exists
    Sep 06 09:25:28.578010 admin[5746]: [ 5] read_file: 15 items read from
    /home/peloruso/.razor/razor-agent.conf
    Sep 06 09:25:28.579010 admin[5746]: [ 5] wrote 15 HASH items to file:
    /home/peloruso/.razor/razor-agent.conf
    Sep 06 09:25:28.579010 admin[5746]: [ 5] computed
    razorhome=/home/peloruso/.razor,
    conf=/home/peloruso/.razor/razor-agent.conf,
    ident=/home/peloruso/.razor/identity
    Sep 06 09:25:28.579010 admin[5746]: [ 2] Razor-Agents v2.84 starting
    razor-admin -d -create
    Sep 06 09:25:28.579010 admin[5746]: [ 5] Can't read file
    /home/peloruso/.razor/servers.discovery.lst: No such file or directory
    Sep 06 09:25:28.579010 admin[5746]: [ 5] Can't read file
    /home/peloruso/.razor/servers.nomination.lst: No such file or directory
    Sep 06 09:25:28.579010 admin[5746]: [ 5] Can't read file
    /home/peloruso/.razor/servers.catalogue.lst: No such file or directory
    Sep 06 09:25:28.579010 admin[5746]: [ 5] no listfile:
    /home/peloruso/.razor/servers.nomination.lst
    Sep 06 09:25:28.579010 admin[5746]: [ 6] no discovery listfile:
    /home/peloruso/.razor/servers.discovery.lst
    Sep 06 09:25:28.579010 admin[5746]: [ 8] Checking with Razor Discovery
    Server discovery.razor.cloudmark.com
    Sep 06 09:25:28.579010 admin[5746]: [ 6] No port specified, using 2703
    Sep 06 09:25:28.579010 admin[5746]: [ 5] Connecting to
    discovery.razor.cloudmark.com ...
    Sep 06 09:25:48.685019 admin[5746]: [ 3] Unable to connect to
    discovery.razor.cloudmark.com:2703; Reason: Operation now in progress.
    Sep 06 09:25:48.685019 admin[5746]: [ 5] Razor Discovery Server
    discovery.razor.cloudmark.com is unreachable
    Sep 06 09:25:48.685019 admin[5746]: [ 1] razor-admin error: nextserver:
    Bootstrap discovery failed. Giving up.
    nextserver: Bootstrap discovery failed. Giving up.

    peloruso@pelorus.org [~]# razor-admin -d -discover
    Razor-Log: Computed razorhome from env: /home/peloruso/.razor
    Razor-Log: Found razorhome: /home/peloruso/.razor
    Razor-Log: read_file: 15 items read from
    /home/peloruso/.razor/razor-agent.conf
    Razor-Log: -discover will force complete discovery
    Sep 06 09:25:55.432686 admin[6212]: [ 2] [bootup] Logging initiated
    LogDebugLevel=9 to stdout
    Sep 06 09:25:55.432686 admin[6212]: [ 5] computed
    razorhome=/home/peloruso/.razor,
    conf=/home/peloruso/.razor/razor-agent.conf,
    ident=/home/peloruso/.razor/identity
    Sep 06 09:25:55.432686 admin[6212]: [ 2] Razor-Agents v2.84 starting
    razor-admin -d -discover
    Sep 06 09:25:55.432686 admin[6212]: [ 5] Can't read file
    /home/peloruso/.razor/servers.discovery.lst: No such file or directory
    Sep 06 09:25:55.432686 admin[6212]: [ 5] Can't read file
    /home/peloruso/.razor/servers.nomination.lst: No such file or directory
    Sep 06 09:25:55.432686 admin[6212]: [ 5] Can't read file
    /home/peloruso/.razor/servers.catalogue.lst: No such file or directory
    Sep 06 09:25:55.433686 admin[6212]: [ 5] no listfile:
    /home/peloruso/.razor/servers.nomination.lst
    Sep 06 09:25:55.433686 admin[6212]: [ 6] no discovery listfile:
    /home/peloruso/.razor/servers.discovery.lst
    Sep 06 09:25:55.433686 admin[6212]: [ 8] Checking with Razor Discovery
    Server discovery.razor.cloudmark.com
    Sep 06 09:25:55.433686 admin[6212]: [ 6] No port specified, using 2703
    Sep 06 09:25:55.433686 admin[6212]: [ 5] Connecting to
    discovery.razor.cloudmark.com ...
    Sep 06 09:26:15.434701 admin[6212]: [ 3] Unable to connect to
    discovery.razor.cloudmark.com:2703; Reason: Operation now in progress.
    Sep 06 09:26:15.434701 admin[6212]: [ 5] Razor Discovery Server
    discovery.razor.cloudmark.com is unreachable
    Sep 06 09:26:15.434701 admin[6212]: [ 1] razor-admin error: nextserver:
    Bootstrap discovery failed. Giving up.
    nextserver: Bootstrap discovery failed. Giving up.

    peloruso@pelorus.org [~]# ls .razor
    ../ ../ razor-agent.conf

    peloruso@pelorus.org [~]# cat .razor/razor-agent.conf
    #
    # Razor2 config file
    #
    # Autogenerated by Razor-Agents v2.84
    # Sat Sep 6 09:25:28 2008
    # Non-default values taken from /home/peloruso/.razor/razor-agent.conf
    #
    # see razor-agent.conf(5) man page
    #

    debuglevel = 9
    identity = identity
    ignorelist = 0
    listfile_catalogue = servers.catalogue.lst
    listfile_discovery = servers.discovery.lst
    listfile_nomination = servers.nomination.lst
    logfile = razor-agent.log
    logic_method = 4
    min_cf = ac
    razordiscovery = discovery.razor.cloudmark.com
    rediscovery_wait = 172800
    report_headers = 1
    turn_off_discovery = 0
    use_engines = 4,8
    whitelist = razor-whitelist

    peloruso@pelorus.org [~]# telnet discovery.razor.cloudmark.com 2703
    Trying 208.83.137.205...
    telnet: connect to address 208.83.137.205: Connection timed out
    Trying 208.83.137.117...
    telnet: connect to address 208.83.137.117: Connection timed out

    Should I be able to telnet to discovery.razor.cloudmark.com on port
    2703? If my system is blocking that port for some reason, can other
    ports be used and where is that configured? I don't know how successful
    I would be at getting my server to unblock that port.

    Skip

    --
    Get my PGP Public key here:
    http://pelorus.org/skip@pelorus.org_public_key.asc


  2. Re: Setting up razor

    I think razor is not free anymore.

    Ron Smith
    postmaster@pmbx.net

    "Having an email problem is painful, but character-building."

    On Sep 6, 2008, at 11:32 AM, Skip wrote:

    > Sep 06 09:25:48.685019 admin[5746]: [ 5] Razor Discovery Server
    > discovery.razor.cloudmark.com is unreachable
    > Sep 06 09:25:48.685019 admin[5746]: [ 1] razor-admin error:
    > nextserver: Bootstrap discovery failed. Giving up.



  3. Re: Setting up razor



    Ron Smith wrote:
    > I think razor is not free anymore.
    >
    > Ron Smith
    > postmaster@pmbx.net
    >
    > "Having an email problem is painful, but character-building."
    >
    >
    >

    Unless there is something newer than this, I believe Razor is free.
    http://sourceforge.net/forum/forum.php?forum_id=576145

    --
    Get my PGP Public key here:
    http://pelorus.org/skip@pelorus.org_public_key.asc


  4. Re: Setting up razor

    On Sat, Sep 06, 2008 at 11:32:54AM -0400, Skip wrote:
    > peloruso@pelorus.org [~]# telnet discovery.razor.cloudmark.com 2703
    > Trying 208.83.137.205...
    > telnet: connect to address 208.83.137.205: Connection timed out
    > Trying 208.83.137.117...
    > telnet: connect to address 208.83.137.117: Connection timed out
    >
    > Should I be able to telnet to discovery.razor.cloudmark.com on port
    > 2703? If my system is blocking that port for some reason, can other
    > ports be used and where is that configured? I don't know how successful
    > I would be at getting my server to unblock that port.


    It would seem you probably have a firewall in the way. As far as I know,
    no, you can't use other ports, the servers only run on 2703.

    --
    Randomly Selected Tagline:
    "Oh My God! They Killed init! You Bastards!" - Unknown

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (GNU/Linux)

    iD8DBQFIwst8RnAwoQckjjoRAg6jAKCX4daBxZKyORJSddHrfR 1a+loeJACg0+E0
    R3Zl1el7DmGwc06SZT7YqiM=
    =ebJN
    -----END PGP SIGNATURE-----


  5. Re: Setting up razor



    Theo Van Dinter wrote:
    > On Sat, Sep 06, 2008 at 11:32:54AM -0400, Skip wrote:
    >
    >> peloruso@pelorus.org [~]# telnet discovery.razor.cloudmark.com 2703
    >> Trying 208.83.137.205...
    >> telnet: connect to address 208.83.137.205: Connection timed out
    >> Trying 208.83.137.117...
    >> telnet: connect to address 208.83.137.117: Connection timed out
    >>

    > It would seem you probably have a firewall in the way. As far as I know,
    > no, you can't use other ports, the servers only run on 2703.
    >
    >

    It was the firewall. I go that fixed. Now, here's my next problem. I
    think taint mode is stopping razor from running on my system. Since I
    can't be root, I have to install Razor in my home home directory. So
    while everything seems fine outside of SA, as soon as SA starts running,
    my PERL5LIB environment variable gets reset and Razor2 doesn't know how
    to run. At least that's my theory. Any thoughts on how I could fix this?

    peloruso@pelorus.org [~]# perl -e 'require
    Mail::SpamAssassin::Plugin::Razor2'
    peloruso@pelorus.org [~]# perl -e 'require Razor2::Client::Agent'
    peloruso@pelorus.org [~]# cat Procmail/pmlog-skip |grep taint
    [27100] dbg: util: running in taint mode? yes
    [27100] dbg: util: taint mode: deleting unsafe environment variables,
    resetting PATH
    peloruso@pelorus.org [~]# cat Procmail/pmlog-skip |grep razor -i
    [27100] dbg: config: read file /home/peloruso/.spamassassin/25_razor2.cf
    [27100] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
    [27100] dbg: razor2: razor2 is not available
    [27100] dbg: config: fixed relative path:
    /home/peloruso/.spamassassin/updates_spamassassin_org/25_razor2.cf
    [27100] dbg: config: using
    "/home/peloruso/.spamassassin/updates_spamassassin_org/25_razor2.cf" for
    included file
    [27100] dbg: config: read file
    /home/peloruso/.spamassassin/updates_spamassassin_org/25_razor2.cf
    [27100] dbg: config: fixed relative path:
    /home/peloruso/etc/mail/spamassassin/skip/updates_spamassassin_org/25_razor2.cf
    [27100] dbg: config: using
    "/home/peloruso/etc/mail/spamassassin/skip/updates_spamassassin_org/25_razor2.cf"
    for included file

    By the way, I have also tried pointing the loadplugin right to the
    Razor2.pm file, but that didn't help either, again because I think perl
    doesn't know how to find the rest of the files it needs once SA starts
    running.
    #loadplugin Mail::SpamAssassin::Plugin::Razor2
    /home/peloruso/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm

    I am using SA version 3.2.4

    --
    Get my PGP Public key here:
    http://pelorus.org/skip@pelorus.org_public_key.asc


+ Reply to Thread