Getting Clamd error in /var/log/maillog (Clamd::ERROR:: UNKNOWN CLAMD RETURN ./razor-agent.log/Access denied)

Alex Broens ms-list at alexb.ch
Wed Nov 4 21:23:25 GMT 2009


On 11/4/2009 10:02 PM, Landon Stewart wrote:
> I'm repeatedly getting an error from clamd in /var/log/maillog but I cannot
> figure out what is causing it.  We have two mailscanner machines, only one
> of them is getting the error.  What directory/file permissions should I
> check?  Is that the cause?
> 
> *The errors are:*
> Nov  4 15:49:50 mail-out2 MailScanner[19819]: Clamd::ERROR:: UNKNOWN CLAMD
> RETURN ./razor-agent.log/Access denied. ERROR ::
> /var/spool/MailScanner/incoming/19819
> Nov  4 15:51:11 mail-out2 MailScanner[18089]: Clamd::ERROR:: UNKNOWN CLAMD
> RETURN ./razor-agent.log/Access denied. ERROR ::
> /var/spool/MailScanner/incoming/18089
> Nov  4 15:53:44 mail-out2 MailScanner[19819]: Clamd::ERROR:: UNKNOWN CLAMD
> RETURN ./razor-agent.log/Access denied. ERROR ::
> /var/spool/MailScanner/incoming/19819
> Nov  4 15:55:43 mail-out2 MailScanner[19819]: Clamd::ERROR:: UNKNOWN CLAMD
> RETURN ./razor-agent.log/Access denied. ERROR ::
> /var/spool/MailScanner/incoming/19819
> 
> There's lots of other lines and mail appears to be handled normally but I'm
> afraid the anti-virus is not working properly.

unless I'm missing something ...
you need to move your razor log out of that path

mkdir  /etc/mail/spamassassin/razor

create /etc/mail/spamassassin/razor.conf

add to razor.conf:

razorhome /etc/mail/spamassassin/razor
logfile /var/log/razor-agent.log


in /etc/MailScanner/mailscanner.cf
edit/add

razor_config /etc/mail/spamassassin/razor/razor-agents.conf

restart MailScanner

should cleanup your problem

h2h

Alex
PS: Pls note that your paths may vary.


More information about the MailScanner mailing list