>> /etc/amavis/amavis.conf calls for clamAV via:
>>   ['Clam Antivirus-clamd',
>>     \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
>
> My config differs from yours right here ^^^^^^^^^^^^^^^^^^^^^^^^. I have
> this pointing to the clamd socket as defined by LocalSocket in my
> clamd.conf. Double check to make sure that this value in your
> amavis.conf and the LocalSocket in your clamd.conf are the same.
>
> It sounds like you configured everything to use the amavis user. It may
> be worth checking the ownership of that directory and file to make sure
> that it's consistent with what everything expects them to be.

Thanks for the quick reply!

Yep, they're referencing the same socket file (clamd.ctl is the socket
file). As shown here:

#grep clamd.ctl /etc/clamav/clamd.conf /etc/amavis/amavisd.conf
/etc/clamav/clamd.conf:LocalSocket /var/run/clamav/clamd.ctl
/etc/amavis/amavisd.conf:    \&ask_daemon, ["CONTSCAN {}\n",
"/var/run/clamav/clamd.ctl"],

and:

# ls -Al /var/run /var/log /var/lib | grep clamav
drwxr-xr-x  2 amavis      amavis       4096 2007-07-10 09:25 clamav
drwxrwxr-x  2 amavis      amavis      4096 2007-07-10 09:25 clamav
drwxr-xr-x  2 amavis amavis 4096 2007-07-10 10:24 clamav
drwxr-xr-x  2 amavis amavis 4096 2007-07-10 09:04 clamav-getfiles

I guess since I'm kind of new to Amavis I'm not sure what ask_daemon in
the amavis config file is supposed to do, and what is causing Amavis to
not see that clamd is up and running.

Any pointers anyone can offer would be gratefully appreciated!


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to