Razor2 and SpamAssassin


#1

I just upgraded to SpamAssassin 2.61 and when I did ‘spamassassin --lint --debug’ to check my configuration, it said (among other things):

Razor2 is not available

In my ~/.spamassassin/user_prefs file I have

use_razor2 1

and SA on DH used to incorporate the Razor2 results into its score. Has something changed at DH? Do I need to specify the path to Razor2 in my SA local.cf file? Note that I do not want to use the standard DH Razor setup, but instead call it via procmail and spamassasin.

Thanks,
Nancy

PS – Is anyone using SA 2.70-cvs?

Nancy
Infinite Ink ~ http://www.ii.com
Deflexion & Reflexion ~ http://deflexion.com


#2

Nancy,
I just installed 2.63, and I ran the same debug command - the output is below. It looks like I have to update the config file, but I also noticed in my log file that the ‘spamassassin.lock’ line in my .procmail is being skipped…

I wanted to use the DH install, but I thought they were going to keep up with the new releases – I think spamassassin has a way to use an SQL database for users to set their own rules, but so far, no word from DH.

Also, I’m not sure how to let spamassassin learn my spam and ham rules… maybe I’ll read the docs… :slight_smile:

Jonathan

[atomic]$ $HOME/sausr/local/bin/spamassassin --lint --debug
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included ‘/usr/local/bin’, keeping.
debug: PATH included ‘/usr/bin’, keeping.
debug: PATH included ‘/bin’, keeping.
debug: PATH included ‘/usr/bin/X11’, keeping.
debug: PATH included ‘/usr/games’, keeping.
debug: Final PATH set to: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
debug: ignore: using a test message to lint rules
debug: using “/home/XXXXX/sausr/local/share/spamassassin” for default rules dir
debug: using “/home/XXXXX/saetc/mail/spamassassin” for site rules dir
debug: using “/home/XXXXX/.spamassassin” for user state dir
debug: using “/home/XXXXX/.spamassassin/user_prefs” for user prefs file
Failed to parse line in SpamAssassin configuration, skipping: auto_report_threshold 20
Failed to parse line in SpamAssassin configuration, skipping: report_header 1
Failed to parse line in SpamAssassin configuration, skipping: defang_mime 0
Failed to parse line in SpamAssassin configuration, skipping: whitelist from *@nbc.com
debug: using “/home/XXXXX/.spamassassin” for user state dir
debug: bayes: 9866 tie-ing to DB file R/O /home/XXXXX/.spamassassin/bayes_toks
debug: bayes: 9866 tie-ing to DB file R/O /home/XXXXX/.spamassassin/bayes_seen
debug: bayes: found bayes db version 2
debug: bayes: Not available for scanning, only 1 spam(s) in Bayes DB < 200
debug: bayes: 9866 untie-ing
debug: bayes: 9866 untie-ing db_toks
debug: bayes: 9866 untie-ing db_seen
debug: Score set 1 chosen.
debug: Initialising learner
debug: using “/home/XXXXX/.spamassassin” for user state dir
debug: bayes: 9866 tie-ing to DB file R/O /home/XXXXX/.spamassassin/bayes_toks
debug: bayes: 9866 tie-ing to DB file R/O /home/XXXXX/.spamassassin/bayes_seen
debug: bayes: found bayes db version 2
debug: bayes: Not available for scanning, only 1 spam(s) in Bayes DB < 200
debug: bayes: 9866 untie-ing
debug: bayes: 9866 untie-ing db_toks
debug: bayes: 9866 untie-ing db_seen
debug: Loading languages file…
debug: Language possibly: en,sco
debug: is Net::DNS::Resolver available? yes
debug: trying (3) yahoo.com
debug: looking up MX for 'yahoo.com
debug: MX for ‘yahoo.com’ exists? 1
debug: MX lookup of yahoo.com succeeded => Dns available (set dns_available to hardcode)
debug: is DNS available? 1
debug: all ‘*From’ addrs: ignore@compiling.spamassassin.taint.org
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=1.27
debug: Razor2 is not available
debug: running raw-body-text per-line regexp tests; score so far=1.27
debug: running uri tests; score so far=1.27
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=1.27
debug: Razor2 is not available
debug: DCCifd is not available: no r/w dccifd socket found.
debug: Current PATH is: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
debug: DCC is not available: no executable dccproc found.
debug: Pyzor is not available: pyzor not found
debug: all ‘*To’ addrs:
debug: RBL: success for 1 of 1 queries
debug: running meta tests; score so far=1.27
debug: is spam? score=1.27 required=6 tests=DATE_MISSING,NO_REAL_NAME
[atomic]$


#3

We generally try to stay with the Debian release. However we may install the backported version sometime in the not-to-distant future. The main thing that’s tricky here is that we’d need to coordinate this with people who are currently using the older version, since some options and flags have changed with the new version. If this weren’t a concern, we could just install the semi-official backported Debian package.

BTW, another DH SpamAssassin howto a friend of mine did:
http://2xlp.com/SA_DREAMHOST.html


#4

So I think I’m up and running, and I was checking the procmail logs to see what’s going on exactly. I keep getting a
’Non-zero exitcode (1) from “razor-check”’ message, and I think that means that razor is not working. In the razor-agent.log, I see the following:

Jan 26 12:48:50.503872 check[22934]: [ 2] Razor-Agents v2.22 starting razor-check
Jan 26 12:48:50.796334 check[22934]: [ 3] mail 1 is not known spam.

Any ideas?

Jonathan


#5

This may just be because razor-agent isn’t installed on the user machine and thus doesn’t get found in the SA build process. I’ve installed that on your user machine, Nancy, so maybe that will help. Beyond that, I really don’t know what it could be.