> martinnitram wrote:
>> if you used /etc/rc.d/init.d/clamav-milter to start the milter, at
>> around
>> line 20, you can see
>>
>> ...
>> # Local clamav-milter config
>> CLAMAV_FLAGS=
>> test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig/clamav-milter
>> ...
>>
>> so the milter config file should be "/etc/sysconfig/clamav-milter"
>>
> Actually, that config file is for your rc system which starts
> clamav-milter. It appears that you can set the CLAMAV_FLAGS environment
> variable in /etc/sysconfig/clamav-milter. That way, when your system
> starts up, clamav-milter will be called with the arguments you specify
> if you want.
> As an earlier post said, your clamav-milter config file is clamd.conf
> (IIRC).
>

My installation did not set/create any config file for clamav-milter, but
only for clamav and freshclam. Also, it did not set/create any "startup
script" or service for it. Maybe I missed something, I don't know. So, I
manually create startup script /etc/rc.d/init.d/clamav-milter for the
service clamav-milter and set the config file clamd.conf for it as:

CLAMAV_FLAGS="-f -c /usr/local/etc/clamd.conf -o
local:/var/run/clamav/clmilter.sock"

Then, as long as you config everything correct, it works well.

Thanks for all the help!

Hongwei
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to