[Mimedefang] Fwd: Re: clamav vs clamd vs clamscan
chayes at afo.net
Mon Oct 13 17:30:04 EDT 2014
restarted clamd; same error
permissions for each directory up to and including /var/spool/MIMEDefang:
drwxr-xr-x. 22 root root 4096 Oct 7 14:55 var
drwxr-xr-x. 14 root root 4096 Oct 7 12:49 spool
drwxr-x--- 3 defang defang 4096 Oct 13 16:23 MIMEDefang
I tried 755 on MIMEDefang and still got same error:
drwxr-xr-x 3 defang defang 4096 Oct 13 16:23 MIMEDefang
selinux is not running at this time
and I have the following option set:
On 10/13/2014 4:17 PM, Les Mikesell wrote:
> On Mon, Oct 13, 2014 at 4:01 PM, Cliff Hayes <chayes at afo.net> wrote:
>> Per other comments I removed all traces of previous clam installs and
>> started over with binaries.
>> Got clamd running as root and mimedefang running as defang - no problem.
>> But I'd like to run clamd as clamav so I did your idea and added defang to
>> clamav as such: usermod -G defang clamav
>> So now clamd is a member of two groups: clamav and defang but I still get
>> the following error:
>> Oct 13 15:53:47 sendmail mimedefang.pl: s9DKrlSJ027472: Clamd
>> returned error: lstat() failed: Permission denied.
>> Oct 13 15:53:47 sendmail mimedefang.pl: s9DKrlSJ027472: Problem
>> running virus scanner: code=999, category=swerr, action=tempfail
>> Mon Oct 13 15:53:47 2014 -> WARNING: lstat() failed on:
> Did you restart clamd after the change? Also , check that the
> directories above /var/spool/MIMEDefang/mdefang-s9DKrlSJ027472/Work
> have rx permissions for group or other and the new files mimedefang is
> creating have group access.
More information about the MIMEDefang