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): [EMAIL PROTECTED]:~$ 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: [EMAIL PROTECTED]:~$ razor-admin -create [EMAIL PROTECTED]:~$ 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: [EMAIL PROTECTED]:~$ razor-admin -create [EMAIL PROTECTED]:~$ 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: [EMAIL PROTECTED]:~$ razor-admin -register Register successful. Identity stored in /home/garyv/.razor/identity-ruwV4KG32U [EMAIL PROTECTED]:~$ 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 _______________________________________________ Razor-users mailing list Razor-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/razor-users