[Mimedefang] Error with mimedefang + clamd

Info @ brainwash info at brainwash.gr
Thu Nov 23 13:36:50 EST 2017

Hi Dianne,

Thank you for the swift reply.

Tried the commands you mention.. to no effect however.. :(

Still @ maillog:

mimedefang.pl[25993]: B8D39D49: Clamd returned error: lstat() failed: Permission denied.
mimedefang.pl[25993]: B8D39D49: Problem running virus scanner: code=999, category=swerr, action=tempfail
mimedefang.pl[25993]: B8D39D49: filter:  tempfail=1
mimedefang[26008]: B8D39D49: Tempfailing because filter instructed us to

... and @ clamav log:

-> WARNING: lstat() failed on: /var/spool/MIMEDefang/mdefang-UBuyV00/Work

As a reminder, clamav user is a member of the defang group and vice versa..

-----Original Message-----
From: MIMEDefang [mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of Dianne Skoll
Sent: Thursday, November 23, 2017 5:23 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Error with mimedefang + clamd

On Thu, 23 Nov 2017 14:25:28 +0200
"Info @ brainwash" <info at brainwash.gr> wrote:

> mimedefang with the -G option and have the clamav user as member of 
> the defang group. In particular, the startup parameters of both

> .. and I get the issues with the Work files creation as initially 
> mentioned, even though clamav user is a member of the defang group.
> Unfortunately, I cannot run clamav under defang due to admin 
> restricions/policies.

Try stopping MIMEDefang and running:

chgrp -R defang /var/spool/MIMEDefang
chmod 750 /var/spool/MIMEDefang
chmod g+s /var/spool/MIMEDefang

That will make /var/spool/MIMEDefang have group "defang" and set the SGID bit on the directory, meaning any directories or files created under /var/spool/MIMEDefang will also have group "defang"
(and recursively down the whole tree.)


NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com

More information about the MIMEDefang mailing list