[Mimedefang] Is it yet possible to run clamd (with mimedefang) as a different user?

Rob MacGregor rob.macgregor at gmail.com
Tue Jan 25 16:02:06 EST 2005

On Tue, 25 Jan 2005 10:07:41 -0500, Lee Dilkie <Lee at dilkie.com> wrote:
> Hi all,
> I just upgraded my clamav (freebsd, ports) and again, it changed the
> permissions on some of it's directories and caused it to not start as
> user 'mailnull' (the same user that sendmail and mimedefang run as). I
> would rather let clamd run as the user it wants to (clamav user) and
> configure mimedefang/sendmail to allow this but my efforts did not work.

No need to - I use clamav with MD and let both use their default users.

If you put clamav into the mailnull group and set 
"AllowSupplementaryGroups" in clamd.conf, then put this at the top of
your mimedefang-filter:

$ClamdSock  = "/var/run/clamav/clamd";

Everything will "just work".

                 Please keep list traffic on the list.
Rob MacGregor
      Whoever fights monsters should see to it that in the process he 
        doesn't become a monster.                  Friedrich Nietzsche

More information about the MIMEDefang mailing list