On Thu, Jan 7, 2010 at 6:31 AM, Noah Sheppard <nls...@gmail.com> wrote:
>
> I'm running postfix-2.3.3 with clamav-milter-0.95.3 (and therefore
> clamd-0.95.3). Postfix is running as user "postfix". OS is RHEL5,
> x86_64.
>
> When I start clamd, it creates clamd.sock like so:
> $ ls -l /var/run/clamav/clamd.sock
> srwxrwxrwx 1 clamav clamav 0 Dec 29 16:02 /var/run/clamav/clamd.sock

Change the user that clamav runs as to "postfix".  You'll need to
change it in clamd.conf, freshclam.conf, and clamav-milter.conf.
You'll also need to change the owner of the directories that clamav
uses.
chown -R postfix: /var/log/clamav /var/clamav /var/lib/clamav /var/run/clamav

Restart clamav, clamav-milter, and freshclam daemons.

The only issue I have is that the rpm changes the directory
permissions back to clamav: when it installs and updated version, but
it's easily fixable with one command, so not a big deal.

-- 
Regards...      Todd
Real Integrity is doing the right thing, knowing that no body's going
to know whether you did it or not.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to