Hylton Conacher (ZR1HPC) wrote:
Hi Sandy,
Sandy Drobic wrote:
Hylton Conacher (ZR1HPC) wrote about an amavisd failure:
Now you get off you lazy butt and see for yourself how clam-av and amavisd-new are configured. (^-^)
np except I gotta be on my butt to type :)
egrep -v "^#" /etc/clamd.conf | egrep -v "^$"
# Same localSocket as in /etc/amavisd.conf! LocalSocket /var/run/clamav/clamd FixStaleSocket yes TCPSocket 3310 TCPAddr 127.0.0.1 User vscan
I ran the above command and retrieved: hylton@Umalusi:~> egrep -v "^#" /etc/clamd.conf | egrep -v "^$" LogSyslog yes LogFacility LOG_MAIL PidFile /var/lib/clamav/clamd.pid LocalSocket /var/lib/clamav/clamd-socket TCPSocket 3310 TCPAddr 127.0.0.1 User vscan
See above on the socket of clamd.
My /etc/antivisd.conf does not have ClamAV listed under @av_scanners but it is listed under @av_scanners_backup
Okay, so you can simply copy and paste the lines between the two sections. Just make sure the socket in the amavisd-new config is at the same place where clamd has its socket configured in /etc/clamd.conf. See above.
Check that clamd actually is running: rcclamd status and is set to start at boot: chkconfig clamd on
Above three are all OK
and finally, that you call fresh-clam from cron.
How, as 'crontab -l' inder user and root showed nothing?
Yes, that's your job to script. (^-^) Something like: ------------------------------------------- #!/bin/sh # update of clam-av signatures EMAIL=postmaster@example.com tempfile=`mktemp` freshclam > $tempfile statusclam=$? #echo "test clam" > $tempfile #statusclam=0 case "$statusclam" in 0 ) echo "Clamav has gotten new sigatures!" ;; 1 ) echo "Clamav is up-to-date" ;; 255) cat $tempfile | mail -s "Clamav could'nt update: $statusclam" $EMAIL ;; esac rm $tempfile ------------------------------------------- Feel free to expand the example. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org