<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 8/26/2013 11:36 AM, Benedict White
wrote:<br>
</div>
<blockquote
cite="mid:ACF27D5D1618A443A0D3B7F1A28B4CDADE6222A288@snowball"
type="cite">
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">I'm getting this error in my amavis logs concerning
<span class="moz-txt-citetags">>> </span>razor2.
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>razor2: razor2 check failed: No such file or directory razor2: Can't
<span class="moz-txt-citetags">>> </span>read conf file: <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>root<span class="moz-txt-tag">/</span></i>.razor/razor-agent.conf at
<span class="moz-txt-citetags">>> </span>/usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 325.
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>The razor-agent.conf file exists in that location so I'm not
<span class="moz-txt-citetags">>> </span>understanding why it doesn't work.
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>Thanks in advance
<span class="moz-txt-citetags">>></span>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> </span>Check the file rights with ls -l, then check what user Amavisd, spamassassin and Razor are running under.
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>Kind regards
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>Benedict White
</pre>
</blockquote>
<pre wrap="">The file rights are as follows:
-rw-r--r-- 1 amavis amavis 706 2010-11-27 14:47 razor-agent.conf
Amavisd runs as amavis. There is no process for razor from what i can
tell. I thought amavis called that process wheat n needed. The spamd daemon
runs as root.
Firstly this should be posted to the list, under it's own subject,
Secondly Amavisd doesn't call Razor, Spamassassin does. Have you tried setting
the ownership as root?
That said, there are documents on Razor set up which I haven't read for an age
which cover setup and testing.</pre>
</blockquote>
1. posted on its own subject<br>
2. Tried setting it as root and got the exact same error<br>
3. Read the docs and here's the extend of the "documentation" on
razor:<br>
<br>
Install and configure razor:<br>
<br>
apt-get install razor<br>
razor-admin -create<br>
razor-admin -register<br>
<br>
Running this command to verify razor:<br>
<br>
razor-admin -d -debuglevel=9 -create<br>
<br>
Generates the following:<br>
<br>
razor-admin finished successfully.<br>
<br>
so it seems to be installed and configured correctly as far as the
system is concerned. Amavis seems to complain when I run it in debug
mode. <br>
<br>
<strong></strong>Now the "documentation" on Ubuntu's website said
the following after instructing to install razor:<br>
<br>
"<span style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue',
'Lucida Grande', Helvetica, Arial, Verdana, sans-serif; font-size:
14px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">Spamassassin
automatically detects optional components and will use them if
they are present. This means that there is no need to configure<span
class="Apple-converted-space"> </span></span><span
class="application" style="color: rgb(0, 0, 0); font-family:
'Helvetica Neue', 'Lucida Grande', Helvetica, Arial, Verdana,
sans-serif; font-size: 14px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><strong>pyzor</strong></span><span
style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue', 'Lucida
Grande', Helvetica, Arial, Verdana, sans-serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;"><span
class="Apple-converted-space"> </span>and<span
class="Apple-converted-space"> </span></span><span
class="application" style="color: rgb(0, 0, 0); font-family:
'Helvetica Neue', 'Lucida Grande', Helvetica, Arial, Verdana,
sans-serif; font-size: 14px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><strong>razor</strong></span><span
style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue', 'Lucida
Grande', Helvetica, Arial, Verdana, sans-serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">."<br>
<br>
Any ideas?<br>
<br>
<br>
</span>
</body>
</html>