Todd Lyons wrote:
>
> The config file is the clamav config file, usually /etc/clamav.conf.
> You should be calling the clamav-milter with the lines set below:
>
>>      CLAMAV_FLAGS="
>>              --config-file=/etc/clamav.conf
>>              --headers --noreject --outgoing
>>              --quarantine-dir=/var/clamav/quarantine
>>              --max-children=10 --force-scan --local
>>              [EMAIL PROTECTED]
>>              --postmaster-only
>>              --server=localhost
>>              local:/var/run/clamav/clamav-milter.sock
>>      "
>
> This should do it (and is common as a clamav-milter init script:
>
> . /etc/sysconfig/clamav-milter
> clamav-milter $CLAMAV_FLAGS
>
> I've attached my clamav-milter init script.  Note that I've adjusted
> the startup priority for my system.  You too should adjust it for your
> particular needs.  You do this by editing the line:
> # chkconfig: 2345 78 32
> That means that when you do 'chkconfig add clamav-milter', it will
> enable it for runlevels 2, 3, 4 and 5 with priority 78, and during the
> shutdown process, will kill it with priority 32.  Clamd needs to start
> before clamav-milter, so make the 78 number larger than clamd's and
> you should be good to go.

Unfortunately, the script didn't make it through.  Here's what I've got in
the init.d/clamav-milter script:

        # Local clamav-milter config
        CLAMAV_FLAGS=
        test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig/clamav-milter

Well, there's more, but this looks like the important line.
Another chance to display my ignorance:
Does this mean that it will pick up the flags from the file I've got in
sysconfig, and use them when it starts?
If so, then it looks like simply adjusting the priorities will do it.

Thanks again,
 -Don




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to