|
|
Subject: Config of razor - msg#00025
List: mail.spam.razor.user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello list. I have downloaded and installed the agent-sdk and agent
tarball; followed the install instructions. On step 5 i stumbled:
5. Run `razor-admin -create' to create a default config file in your
home directory under /home/user/.razor. (Remember to change user to
your username from root before running razor-admin)
Ran this and got a "giving up" error
Same with step 6. So my question is, is razor now configured? If not,
what do you have to do to configure razor? Thanks for any help
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFE49xbyeHMs8IimXARAncEAKDA0GNSLrYJsc1bHXZCXi0Iu99RawCgqyZq
hGfBeYXxo0gc9sAePltizOs=
=CaNt
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: error at creating
On Wed, Aug 16, 2006 at 06:08:42PM -0500, daniel wrote:
> Aug 16 17:59:41.898404 admin[25019]: [ 5] Can't read file
> /root/.razor/servers.discovery.lst: No such file or directory
> Aug 16 17:59:41.899061 admin[25019]: [ 5] Can't read file
> /root/.razor/servers.nomination.lst: No such file or directory
> Aug 16 17:59:41.899470 admin[25019]: [ 5] Can't read file
> /root/.razor/servers.catalogue.lst: No such file or directory
> Aug 16 17:59:41.900176 admin[25019]: [ 5] no listfile:
> /root/.razor/servers.nomination.lst
> Aug 16 17:59:41.900569 admin[25019]: [ 6] no discovery listfile:
> /root/.razor/servers.discovery.lst
This looks like file permissions error or maybe you didn't run
razor-admin -home=/root -create?
> Aug 16 17:59:41.900912 admin[25019]: [ 8] Checking with Razor Discovery
> Server discovery.spamnet.com
> Aug 16 17:59:41.901252 admin[25019]: [ 6] No port specified, using 2703
> Aug 16 17:59:41.901493 admin[25019]: [ 5] Connecting to
> discovery.spamnet.com ...
> Aug 16 18:00:01.901910 admin[25019]: [ 3] Unable to connect to
> discovery.spamnet.com:2703; Reason: Operation now in progress.
> Aug 16 18:00:01.902029 admin[25019]: [ 5] Razor Discovery Server
> discovery.spamnet.com is unreachable
> Aug 16 18:00:01.902280 admin[25019]: [ 1] razor-admin error: nextserver:
> Bootstrap discovery failed. Giving up.
> nextserver: Bootstrap discovery failed. Giving up.
I got this message too. But only once. Do you have a firewall
up? For me, it was some random inability to connect to the
spamnet.com server.
m
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Next Message by Date:
click to view message preview
Re: Config of razor
Christopher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hello list. I have downloaded and installed the agent-sdk and agent
> tarball; followed the install instructions. On step 5 i stumbled:
> 5. Run `razor-admin -create' to create a default config file in your
> home directory under /home/user/.razor. (Remember to change user to
> your username from root before running razor-admin)
> Ran this and got a "giving up" error
> Same with step 6. So my question is, is razor now configured? If not,
> what do you have to do to configure razor? Thanks for any help
As the user that will be using razor, run 'razor-admin -create'
Then list the contents of the .razor directory in the user's home
directory. Here it shows I have run 'razor-admin -create' and listed
the files in the .razor directory, there was only one file, so the
create did not complete properly. I ran it again, and got what should be
there. If a razor-agent.conf file exists as /etc/razor/razor-agent.conf
(as it does on this system):
garyv@sfa:~$ ls -l /etc/razor/
total 20
-rw-r--r-- 1 root root 724 2006-08-16 22:11 razor-agent.conf
-rw-r--r-- 1 root root 209 2006-08-16 22:11 razor-agent.log
-rw-r--r-- 1 root root 58 2006-08-16 22:11 servers.catalogue.lst
-rw-r--r-- 1 root root 22 2006-08-16 22:11 servers.discovery.lst
-rw-r--r-- 1 root root 38 2006-08-16 22:11 servers.nomination.lst
Then that will be used as a site-wide .conf file. I always edit
razor-agent.conf and set debuglevel = 0 so the log does not grow
forever. I only turn logging on if I need to debug. Now I run -create
as a regular user:
garyv@sfa:~$ razor-admin -create
garyv@sfa:~$ ls -l .razor/
total 4
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
You can see the command did not complete properly, so I will simply
run it again:
garyv@sfa:~$ razor-admin -create
garyv@sfa:~$ ls -l .razor/
total 24
-rw-r--r-- 1 garyv garyv 217 2006-08-16 21:44 razor-agent.log
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:44 server.folly.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 58 2006-08-16 21:44 servers.catalogue.lst
-rw-r--r-- 1 garyv garyv 22 2006-08-16 21:44 servers.discovery.lst
-rw-r--r-- 1 garyv garyv 38 2006-08-16 21:44 servers.nomination.lst
This is what I expect. If /etc/razor/razor-agent.conf did not exist,
this file would have also been created in my .razor directory.
If I want to report to razor, I would also need to run
'razor-admin -register'
Then I would also see identity files:
garyv@sfa:~$ razor-admin -register
Register successful. Identity stored in /home/garyv/.razor/identity-ruwV4KG32U
garyv@sfa:~$ ls -l .razor/
total 28
lrwxrwxrwx 1 garyv garyv 19 2006-08-16 21:56 identity -> identity-ruwV4KG32U
-rw------- 1 garyv garyv 90 2006-08-16 21:56 identity-ruwV4KG32U
-rw-r--r-- 1 garyv garyv 557 2006-08-16 21:56 razor-agent.log
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:44 server.folly.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 58 2006-08-16 21:44 servers.catalogue.lst
-rw-r--r-- 1 garyv garyv 22 2006-08-16 21:44 servers.discovery.lst
-rw-r--r-- 1 garyv garyv 38 2006-08-16 21:44 servers.nomination.lst
Razor may actually function without being configured at all, but it is
best to have at least a /etc/razor/razor-agent.conf file if you choose
not to create razor files for each user. This way you can control
debuglevel and prevent razor-agent.log files from growing forever. You can
experiment - try this with and without a .razor directory, and with and
without a /etc/razor/razor-agent.conf file (and with or without your own
personal
razor-agent.conf file) it's easy enough to recreate the files by running
'razor-admin -create'.
Grab a test message from me:
wget http://www200.pair.com/mecham/email.txt
Then try things out:
razor-check -d < email.txt > rtest
less rtest
Or if using spamassassin (don't forget to enable
loadplugin Mail::SpamAssassin::Plugin::Razor2)
spamassassin -tD < email.txt
Run each test a couple times in a row.
Or if using amavisd-new:
amavisd debug-sa (or 'amavisd-new debug-sa' for Debian systems)
On some systems (Debian, Ubuntu), /etc/razor/razor-agent.conf will not
be a proper configuration file. Run 'razor-admin -create' as root if
you want to keep this file, and have it recreated in the proper
format. Personally, I delete it, then run 'razor-admin -create' as the
user that will be using razor. This way I get my own .conf file, as
does any other user that runs -create. I use amavisd-new, so the
amavisd-new user is the only one I create the razor files for. If
individuals are running spamc or spamassassin on their own, it might
be easier if you only use one .conf file. You can also create one set
of files (say for root), and copy them over to other users, changing
the ownership when you do.
Gary V
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Previous Message by Thread:
click to view message preview
error at creating
hello, i installed razor on suse sles 9.3, when i try to create i see
the following errors:
Aug 16 17:59:41.886989 admin[25019]: [ 2] [bootup] Logging initiated
LogDebugLevel=9 to stdout
Aug 16 17:59:41.887611 admin[25019]: [ 6] Not creating razorhome
/root/.razor, already exists
Aug 16 17:59:41.892701 admin[25019]: [ 5] read_file: 15 items read from
/root/.razor/razor-agent.conf
Aug 16 17:59:41.893661 admin[25019]: [ 5] wrote 15 HASH items to file:
/root/.razor/razor-agent.conf
Aug 16 17:59:41.894239 admin[25019]: [ 5] computed
razorhome=/root/.razor, conf=/root/.razor/razor-agent.conf,
ident=/root/.razor/identity
Aug 16 17:59:41.894614 admin[25019]: [ 2] Razor-Agents v2.82 starting
razor-admin -d -create
Aug 16 17:59:41.897691 admin[25019]: [ 9] uname -a: Linux cipactli
2.6.5-7.267-default #1 Wed Jun 21 10:50:51 UTC 2006 i686 i686 i386 GNU/Linux
Aug 16 17:59:41.898404 admin[25019]: [ 5] Can't read file
/root/.razor/servers.discovery.lst: No such file or directory
Aug 16 17:59:41.899061 admin[25019]: [ 5] Can't read file
/root/.razor/servers.nomination.lst: No such file or directory
Aug 16 17:59:41.899470 admin[25019]: [ 5] Can't read file
/root/.razor/servers.catalogue.lst: No such file or directory
Aug 16 17:59:41.900176 admin[25019]: [ 5] no listfile:
/root/.razor/servers.nomination.lst
Aug 16 17:59:41.900569 admin[25019]: [ 6] no discovery listfile:
/root/.razor/servers.discovery.lst
Aug 16 17:59:41.900912 admin[25019]: [ 8] Checking with Razor Discovery
Server discovery.spamnet.com
Aug 16 17:59:41.901252 admin[25019]: [ 6] No port specified, using 2703
Aug 16 17:59:41.901493 admin[25019]: [ 5] Connecting to
discovery.spamnet.com ...
Aug 16 18:00:01.901910 admin[25019]: [ 3] Unable to connect to
discovery.spamnet.com:2703; Reason: Operation now in progress.
Aug 16 18:00:01.902029 admin[25019]: [ 5] Razor Discovery Server
discovery.spamnet.com is unreachable
Aug 16 18:00:01.902280 admin[25019]: [ 1] razor-admin error: nextserver:
Bootstrap discovery failed. Giving up.
nextserver: Bootstrap discovery failed. Giving up.
I followed all the installation process so please help me to find what
is wrong
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Next Message by Thread:
click to view message preview
Re: Config of razor
Christopher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hello list. I have downloaded and installed the agent-sdk and agent
> tarball; followed the install instructions. On step 5 i stumbled:
> 5. Run `razor-admin -create' to create a default config file in your
> home directory under /home/user/.razor. (Remember to change user to
> your username from root before running razor-admin)
> Ran this and got a "giving up" error
> Same with step 6. So my question is, is razor now configured? If not,
> what do you have to do to configure razor? Thanks for any help
As the user that will be using razor, run 'razor-admin -create'
Then list the contents of the .razor directory in the user's home
directory. Here it shows I have run 'razor-admin -create' and listed
the files in the .razor directory, there was only one file, so the
create did not complete properly. I ran it again, and got what should be
there. If a razor-agent.conf file exists as /etc/razor/razor-agent.conf
(as it does on this system):
garyv@sfa:~$ ls -l /etc/razor/
total 20
-rw-r--r-- 1 root root 724 2006-08-16 22:11 razor-agent.conf
-rw-r--r-- 1 root root 209 2006-08-16 22:11 razor-agent.log
-rw-r--r-- 1 root root 58 2006-08-16 22:11 servers.catalogue.lst
-rw-r--r-- 1 root root 22 2006-08-16 22:11 servers.discovery.lst
-rw-r--r-- 1 root root 38 2006-08-16 22:11 servers.nomination.lst
Then that will be used as a site-wide .conf file. I always edit
razor-agent.conf and set debuglevel = 0 so the log does not grow
forever. I only turn logging on if I need to debug. Now I run -create
as a regular user:
garyv@sfa:~$ razor-admin -create
garyv@sfa:~$ ls -l .razor/
total 4
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
You can see the command did not complete properly, so I will simply
run it again:
garyv@sfa:~$ razor-admin -create
garyv@sfa:~$ ls -l .razor/
total 24
-rw-r--r-- 1 garyv garyv 217 2006-08-16 21:44 razor-agent.log
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:44 server.folly.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 58 2006-08-16 21:44 servers.catalogue.lst
-rw-r--r-- 1 garyv garyv 22 2006-08-16 21:44 servers.discovery.lst
-rw-r--r-- 1 garyv garyv 38 2006-08-16 21:44 servers.nomination.lst
This is what I expect. If /etc/razor/razor-agent.conf did not exist,
this file would have also been created in my .razor directory.
If I want to report to razor, I would also need to run
'razor-admin -register'
Then I would also see identity files:
garyv@sfa:~$ razor-admin -register
Register successful. Identity stored in /home/garyv/.razor/identity-ruwV4KG32U
garyv@sfa:~$ ls -l .razor/
total 28
lrwxrwxrwx 1 garyv garyv 19 2006-08-16 21:56 identity -> identity-ruwV4KG32U
-rw------- 1 garyv garyv 90 2006-08-16 21:56 identity-ruwV4KG32U
-rw-r--r-- 1 garyv garyv 557 2006-08-16 21:56 razor-agent.log
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:44 server.folly.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 566 2006-08-16 21:43 server.joy.cloudmark.com.conf
-rw-r--r-- 1 garyv garyv 58 2006-08-16 21:44 servers.catalogue.lst
-rw-r--r-- 1 garyv garyv 22 2006-08-16 21:44 servers.discovery.lst
-rw-r--r-- 1 garyv garyv 38 2006-08-16 21:44 servers.nomination.lst
Razor may actually function without being configured at all, but it is
best to have at least a /etc/razor/razor-agent.conf file if you choose
not to create razor files for each user. This way you can control
debuglevel and prevent razor-agent.log files from growing forever. You can
experiment - try this with and without a .razor directory, and with and
without a /etc/razor/razor-agent.conf file (and with or without your own
personal
razor-agent.conf file) it's easy enough to recreate the files by running
'razor-admin -create'.
Grab a test message from me:
wget http://www200.pair.com/mecham/email.txt
Then try things out:
razor-check -d < email.txt > rtest
less rtest
Or if using spamassassin (don't forget to enable
loadplugin Mail::SpamAssassin::Plugin::Razor2)
spamassassin -tD < email.txt
Run each test a couple times in a row.
Or if using amavisd-new:
amavisd debug-sa (or 'amavisd-new debug-sa' for Debian systems)
On some systems (Debian, Ubuntu), /etc/razor/razor-agent.conf will not
be a proper configuration file. Run 'razor-admin -create' as root if
you want to keep this file, and have it recreated in the proper
format. Personally, I delete it, then run 'razor-admin -create' as the
user that will be using razor. This way I get my own .conf file, as
does any other user that runs -create. I use amavisd-new, so the
amavisd-new user is the only one I create the razor files for. If
individuals are running spamc or spamassassin on their own, it might
be easier if you only use one .conf file. You can also create one set
of files (say for root), and copy them over to other users, changing
the ownership when you do.
Gary V
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
|