[Mimedefang] Using clamdscan --fdpass

Matt Garretson mattg at assembly.state.ny.us
Mon Jul 22 14:03:23 EDT 2013


On 7/19/2013 10:00 PM, Daniel O'Connor wrote:
> I have modified MIMEDefang to use clamdscan --fdpass for Virus:CLAMD
> because clamd runs as a different user to MIMEDefang (clamav vs
> mailnull).



Alternatively, you could simply put the clamav user into the mimedefang
group.  Then, make sure that group is on your MD spool dir with
read+execute perms.   E.g. on my system:

# id clamav
uid=496(clamav) gid=495(clamav) groups=495(clamav),496(defang)

# id defang
uid=497(defang) gid=496(defang) groups=496(defang)

# ls -ld /var/spool/MIMEDefang
drwxr-x--- 63 defang defang 1340 2013-07-22 13:58 /var/spool/MIMEDefang/


NB: You may have to redo the chmod on the MD spool dir every time you
install/upgrade MD, as the installer sometimes seems to reset the perms.




More information about the MIMEDefang mailing list