ClamAV Autoupdater.
Tony Enderby
tenderby at VHIA.COM.AU
Wed Jul 6 11:40:29 IST 2005
Cheers Julian,
I knew there'd be a more elegant approach.
Tony.
Julian Field <MailScanner at ECS.SOTON.AC.UK>
Sent by: MailScanner mailing list <MAILSCANNER at JISCMAIL.AC.UK>
07/06/2005 07:28 PM
Please respond to
MailScanner mailing list <MAILSCANNER at JISCMAIL.AC.UK>
To
MAILSCANNER at JISCMAIL.AC.UK
cc
Subject
Re: ClamAV Autoupdater.
Please don't just edit my code, you don't need to!
You should just run update_virus_scanners and it will update all the
scanners that are installed on your system, looking in the locations
defined in /etc/MailScanner/virus.scanners.conf.
You need to set the clamav line in there to point at /usr instead of
/usr/local.
On 6 Jul 2005, at 10:21, Tony Enderby wrote:
Hi All,
I have until today ignored the errors when I tail -f /var/log/maillog
indicating that the clamav auto update process fails
because I have always run the freshclam update independantly of
MailScanner
Anyway, I had some time on my hands today and decided to try and fix it.
It appeared that MailScanner was trying to run
freshclam from the wrong directory /usr/local/bin/freshclam when
freshclam actually exists in /usr/bin/freshclam
I found what appears to be the update script in
/usr/local/MailScanner/clamav-autoupdate and edited the PackageDir
line to point to /usr in preference to /usr/local
When I run the script directly with perl and tail maillog, it works and
tells me that clamav did not need updating.
If however tail maillog and watch MailScanner output I noticed that when
the autoupdate script runs via MailScanner
I get the original "/usr/local/bin/freshclam cannot be run" < indicating
incorrect path again
Can someone shed some light on why this may be case and if I am in fact
looking in the wrong place?
Many thanks in advance.
Tony.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list