> At 01:15 PM 7/12/2007, Jose Julian Buda wrote: >> > At 10:35 AM 7/12/2007, Jose Julian Buda wrote: >> >>Hi , i am new with this soft , i have installed >> >>postfix+mailscanner+clamav on debian "sarge" server. >> >> >> >>I've installed ClamAV 0.91 from source, run freshclam and the virus >> >>database is updated. >> >> >> >>As you can see: >> >> >> >>serverna:~# clamscan -V >> >>ClamAV 0.91/955/Thu Jun 23 18:08:42 2005 >> >>serverna:~# freshclam -V >> >>ClamAV 0.91/955/Thu Jun 23 18:08:42 2005 >> > >> > The above show database version "955" dated "18:08:42 2005" - two >> > years old. Updates aren't working, despite what you say. >> > >> >>The freshclam procces download ok the daily diff file >> >>But when i run clamscan just to test it on some test files: >> >> >> >>serverna:~# clamscan >> >>LibClamAV Warning: ************************************************** >> >>LibClamAV Warning: *** The virus database is older than 7 days. *** >> >>LibClamAV Warning: *** Please update it IMMEDIATELY! *** >> >>LibClamAV Warning: ************************************************** >> > >> > Maybe you need to run "ldconfig". Maybe you need to uninstall your >> > old version of clam. Maybe freshclam doesn't have permission to >> > write to the database directory. Maybe your freshclam.conf specifies >> > a different DatabaseDirectory than the compiled-in default of clamscan. >> > # clamconf >> > and >> > # clamscan --debug >> > might show something interesting, or at least will show where clam is >> > looking for the databases. >> > >> > -- >> > Noel Jones >> > >> > _______________________________________________ >> > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net >> > http://lurker.clamav.net/list/clamav-users.html >> >> >>Thank you, when i run clamscan --debug >> i see >>... >>LibClamAV debug: Loading databases from /usr/local/share/clamav >>... >>i have two files over there >> >> 148 -rw-rw-r-- 1 clamav clamav 151524 Jun 27 2005 daily.cvd >>2148 -rw-rw-r-- 1 clamav clamav 2196392 Jun 27 2005 main.cvd >> >>as i can see , they are very old >>but why clamscan look in there for this files? >>i have /usr/local/etc/clamd.conf with this configuration : >>... >>DatabaseDirectory /var/lib/clamav/ >>... >> >>and /usr/local/etc/freshclam.conf with this : >> >>... >>DatabaseDirectory /var/lib/clamav/ >>... >> >>How can i see where clamscan take the configuration from? >>Obviously, are not this files. >> >> >>when i run this, everything work fine : >> >>serverna:~# clamscan -d /var/lib/clamav/ >> >> >> >>so , how can i set the DatabaseDirectory ? where? > > > Clamscan does not use a config file - the default database directory > is set at compile-time. Either recompile clamav with the desired > --with-dbdir=/some/path or adjust freshclam.conf and clamd.conf to > agree with clamscan on the database location. > > Your previous post showed that freshclam is also using the antique > database, so something still wrong there. Maybe freshclam doesn't > have write permission in the database directory. > > -- > Noel Jones > > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://lurker.clamav.net/list/clamav-users.html
if i run serverna:~# clamscan -d /var/lib/clamav/ /usr/local/copiasbackups/cables/eicar_com.zip: Eicar-Test-Signature FOUND ----------- SCAN SUMMARY ----------- Known viruses: 137301 Engine version: 0.91 Scanned directories: 1 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Time: 4.939 sec (0 m 4 s) it works fine, just scan the files, no one error, so i set the variable ScanOptions="-d /var/lib/clamav/" in the /etc/MailScanner/wrapper/clamav-wrapper file and i think it will work fine... i hope so... Thank you Jose Julian Buda _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html