Don Levey wanted us to know: >Whether or not I specify the file (-c /etc/sysconfig/clamav-milter) I get an >error: > clamav-milter: No socket-addr given >If I specify the socket address on the command-line also, I get: > ERROR: Parse error at line 10: Unknown option CLAMAV_FLAGS=". > clamav-milter: Can't parse the config file /etc/sysconfig/clamav-milter
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. -- Regards... Todd We should not be building surveillance technology into standards. Law enforcement was not supposed to be easy. Where it is easy, it's called a police state. -- Jeff Schiller on NANOG Linux kernel 2.6.3-8mdkenterprise 2 users, load average: 0.00, 0.02, 0.00 ------------------------------------------------------- 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
