Mailinglist Archive: opensuse (3434 mails)
| < Previous | Next > |
Re: [opensuse] amavisd warning failure?
- From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 01 Feb 2008 21:28:13 +0100
- Message-id: <47A380DD.7000303@xxxxxxxxxxxxxxxxxxxxxxx>
Hylton Conacher (ZR1HPC) wrote:
See above on the socket of clamd.
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.
Yes, that's your job to script. (^-^)
Something like:
-------------------------------------------
#!/bin/sh
# update of clam-av signatures
EMAIL=postmaster@xxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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@xxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |