I had this same issue. It seems you have to use the "-home /etc/razor" switch on the command line. For Spamassassin / Mimedefang you will need to add a path to /etc/razor/razor-agent.conf in the /etc/mail/spamassassin/local.cf file. This has been working great for me. Here is my razor setup for spamassassin:
skip_rbl_checks 0 use_razor2 1 razor_timeout 10 razor_config /etc/razor/razor-agent.conf
Jim
Thanks a lot Jim. In /etc/mail/spamassassin/sa-mimedefang.cf I had
razor_config /etc/razor
and
razor_config /etc/razor/razor-agent.conf
got mimedefang/spamassassin/razor going for me. Also adding the "-home /etc/razor" option on the razor-check command cleared up the "no razorhome errors".
- Steve
-----Original Message----- From: Steve Moore [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 9:53 AM To: [EMAIL PROTECTED] Subject: [Razor-users] razorhome
I have Razor v2.36 installed and working after a fashion. However I can not get it to use /etc/razor as its home or log anything. Ultimately I want to use razor with sendmail/mimedefang/spamassassin. Mimedefang is the unix user that will be invoking razor-check. But first I need to get razor-check working independently and logging somewhere.
When I run razor-check in debug mode it finds /etc/razor/razor-agent.conf but then it complains that there is no razorhome. Can anyone suggest how I set razorhome? I set it to /etc/razor in /etc/razor/razor-agent.conf. A snippet of the razor-check output and a copy of /etc/razor/razor-agent.conf is included below. Thanks in advance for any comments.
mooresm:tstaix03:>razor-check -d -debuglevel=9 /tmp/sample-spam.txt | more Razor-Log: Computed razorhome from env: /home/mooresm/.razor Razor-Log: No razorhome found, using all defaults Razor-Log: read_file: 17 items read from /etc/razor/razor-agent.conf Feb 12 10:32:14.404165 check[13860]: [ 1] [bootup] Logging initiated LogDebugLev el=9 to stdout Feb 12 10:32:14.406058 check[13860]: [ 5] computed razorhome=, conf=/etc/razor/r azor-agent.conf, ident=identity Feb 12 10:39:59.126322 check[21346]: [ 5] no razorhome, not caching server info to disk
# # Razor2 config file # # Autogenerated by Razor-Agents v2.36 # Wed Feb 11 16:46:47 2004 # Non-default values taken from /etc/razor/razor-agent.conf # # see razor-agent.conf(5) man page #
debuglevel = 3 identity = identity ignorelist = 0 listfile_catalogue = /etc/razor/servers.catalogue.lst listfile_discovery = /etc/razor/servers.discovery.lst listfile_nomination = /etc/razor/servers.nomination.lst logfile = /etc/razor/razor-agent.log logic_method = 4 min_cf = ac razorhome = /etc/razor razorzone = razor2.cloudmark.com rediscovery_wait = 172800 report_headers = 1 sort_by_distance = 0 turn_off_discovery = 0 use_engines = 1,2,3,4 whitelist = /etc/razor/razor-whitelist
Steve Moore Senior Software Coordinator Miami University 113 B Hoyt Hall Oxford, OH 45056 email:[EMAIL PROTECTED] voice:513-529-1452 fax:513-529-9665
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users