You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Kevin Murphy <mu...@genome.chop.edu> on 2006/06/14 20:46:12 UTC
Is razor working with spamassassin?
I need confirmation that razor is working with spamassassin. I'm using
the latest versions of Mail::SpamAssassin and razor2.
I know there is an entry for this question on the wiki, but it wasn't
helpful; maybe it is out of date?
When I run:
sudo -u amavis spamassassin -D --lint </tmp/junk.msg
Here are the first few lines in the output that mention razor:
[19041] dbg: diag: module installed: Razor2::Client::Agent, version 2.82
[19041] dbg: config: read file /usr/local/share/spamassassin/25_razor2.cf
[19041] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[19041] dbg: razor2: razor2 is available, version 2.82
Then later this chunk:
[19041] dbg: plugin: registering glue method for check_razor2_range
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x2afedc))
[19041] dbg: info: entering helper-app run mode
[19041] dbg: info: leaving helper-app run mode
[19041] dbg: razor2: part=0 engine=4 contested=0 confidence=0
[19041] dbg: razor2: results: spam? 0
[19041] dbg: razor2: results: engine 8, highest cf score: 0
[19041] dbg: razor2: results: engine 4, highest cf score: 0
[19041] dbg: plugin: registering glue method for check_razor2
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x2afedc))
I can't tell if razor is really being applied or not.
My configuration:
In /etc/mail/spamassassin/v310.pre, I have:
loadplugin Mail::SpamAssassin::Plugin::Razor2
ifplugin Mail::SpamAssassin::Plugin::Razor2
use_razor2 1
razor_config /var/amavis/.razor/razor-agent.conf
endif
In /var/amavis/.razor/razor-agent.conf, I have:
debuglevel = 3
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.spamnet.com
rediscovery_wait = 172800
report_headers = 1
turn_off_discovery = 0
use_engines = 4,8
whitelist = razor-whitelist
razorhome = /var/amavis/.razor/
In /var/amavis/.razor/, I see:
razor-agent.conf
razor-agent.log
server.c101.cloudmark.com.conf
server.joy.cloudmark.com.conf
server.shock.cloudmark.com.conf
servers.catalogue.lst
servers.catalogue.lst.lock
servers.discovery.lst
servers.nomination.lst
servers.nomination.lst.lock
The whole /var/amavis tree is owned by 'amavis'.
Thanks,
Kevin Murphy
Re: Is razor working with spamassassin?
Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Jun 14, 2006 at 02:46:12PM -0400, Kevin Murphy wrote:
> I know there is an entry for this question on the wiki, but it wasn't
> helpful; maybe it is out of date?
The information has generally been constant for a while, but I wouldn't be
surprised if pieces were out of date. If you have a pointer to what you think
is out of date, let me know.
> sudo -u amavis spamassassin -D --lint </tmp/junk.msg
(fyi, you don't need the junk.msg, --lint generates and uses its own message)
> Here are the first few lines in the output that mention razor:
>
> [19041] dbg: diag: module installed: Razor2::Client::Agent, version 2.82
> [19041] dbg: config: read file /usr/local/share/spamassassin/25_razor2.cf
> [19041] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
> [19041] dbg: razor2: razor2 is available, version 2.82
Ok, the plugin is loaded and razor2 is available.
> Then later this chunk:
>
> [19041] dbg: razor2: part=0 engine=4 contested=0 confidence=0
razor found a single part in the message.
> [19041] dbg: razor2: results: spam? 0
> [19041] dbg: razor2: results: engine 8, highest cf score: 0
> [19041] dbg: razor2: results: engine 4, highest cf score: 0
and at the end the result is that the mail isn't considered spam.
> I can't tell if razor is really being applied or not.
If it wasn't in use, you wouldn't see the above stuff.
> loadplugin Mail::SpamAssassin::Plugin::Razor2
> ifplugin Mail::SpamAssassin::Plugin::Razor2
> use_razor2 1
"use_razor2 1" is enabled by default if you load the plugin, fyi.
--
Randomly Generated Tagline:
Fry: I'm not a robot like you. I don't like having disks crammed
into me... unless they're Oreos, and then only in the mouth.
RE: Is razor working with spamassassin?
Posted by Gary V <mr...@hotmail.com>.
> > It might be working, but you don't have an identity (and you need one).
>
>Do you need to register an identity just to perform queries? The razor
>documentation implied you only needed to register if you wanted to
>submit samples to the database...
>
>--
> John Hardin
That is likely true. I create one anyway. You may end up running
'spamassassin -r' at some point in the future, you never know. If you decide
to create one, I suggest letting it create a random identity.
Gary V
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
RE: Is razor working with spamassassin?
Posted by "John D. Hardin" <jh...@impsec.org>.
On Wed, 14 Jun 2006, Gary V wrote:
> It might be working, but you don't have an identity (and you need one).
Do you need to register an identity just to perform queries? The razor
documentation implied you only needed to register if you wanted to
submit samples to the database...
--
John Hardin KA7OHZ ICQ#15735746 http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Apparently the Bush/Rove idea of being a "fiscal conservative" is
to spend money like there's no tomorrow, run up huge deficits, and
pray the Rapture happens before the bills come due.
-- atul666 in Y! SCOX forum
-----------------------------------------------------------------------
4 days until SWMBO's Birthday
RE: Is razor working with spamassassin?
Posted by Gary V <mr...@hotmail.com>.
>[19041] dbg: razor2: razor2 is available, version 2.82
Well at least it is there for SpamAssassin to use.
>[19041] dbg: razor2: results: spam? 0
Looks like the message was checked (and found not to be spam). Looks OK
provided the message was in fact not found in the razor database (that is
the question isn't it?).
>
>In /var/amavis/.razor/, I see:
>
>razor-agent.conf
>razor-agent.log
>server.c101.cloudmark.com.conf
>server.joy.cloudmark.com.conf
>server.shock.cloudmark.com.conf
>servers.catalogue.lst
>servers.catalogue.lst.lock
>servers.discovery.lst
>servers.nomination.lst
>servers.nomination.lst.lock
>
>The whole /var/amavis tree is owned by 'amavis'.
>
>Thanks,
>Kevin Murphy
>
It might be working, but you don't have an identity (and you need one).
To create one for amavis, try:
sudo -u amavis razor-admin -register
(may have to run it more than one time if you get an error)
See what you find in /var/amavis/.razor/razor-agent.log
You might also use:
sudo -u amavis razor-check -d <email.txt
Also, you may consider disabling logging after you you know it works, set:
debuglevel = 0
The log will grow forever otherwise.
If you like, I have a sample that should hit:
wget http://www200.pair.com/mecham/email.txt
Gary V
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement