Antivirus in Linux
Translation of the original in Catalan. Read it in: CatalàCastellano
I've just uploaded a couple of documents to the SDMS section, both of them talk about how to prevent the windows files that are served from our linux from being infected with viruses.
Both documents can be found with the keyword: virus, the first of them is an article from Linux Actual that talks about various antivirus programs that scan in real time or else from command mode the files that our linux servers serve. Normally Windows files. This document is a bit obsolete, but following the links it has in the appendix we can end up very well informed about this subject.
The other document is about AMAVIS (A MAil VIrus Scanner), it's a kind of super well put together script that scans in real time the emails that pass through our MTA (Sendmail, Postfix, Qmail,etc)... so if any of the emails that are addressed to our users is infected by a virus this program informs the sender of the message, recipient of the message and administrator of the MTA that an attempt has been made to pass a file with a virus through it. It's worth losing a little while looking at it because it's very interesting. The url where to find AMAVIS is: http://www.amavis.org
3 comments
Comments from the old blog, as they were written. Comments are closed.
Oriol Rius
Després de passar-me llarga estona baixant el AVP (Antiviral Toolkit Pro
3.0Buil 135 per Linux) q el molt cabron no porta el fitxer *.key el qual m'ha
costat deu i ajuda trobar pq el antivirus no es queixes de q no tenia
llicencia. He hagut de baixar els fitxers *.avc q son els q tenen les dades
sobre els nous virus.
Aquest procés es pot automatitzar amb el AvpUpdater, usant el
paràmetre: -ui=ftp://ftp.avp.com/pub/update.
Un cop he tingut l'antivirus instal.lat he descomprimit el AMAVIS i he llegit
el README.sendmail (la versió de sendmail q he usat per fer les proves
era la de l'slack 7.1, o sigui, sendmail 8.10.2).
Després de seguir els passos q deia el README, em faltava el tnef (q
serveix per extreure atachments dels emails especifics de mococho (x-tnef/app).
Després he tornat a fer un ./configure i em deia q l'attachment no era
segur per tant, he modificat el script del ./configure pq no es queixes, ja q
no tenia cap sentit el q deia.
Després de diversos strace's he vist q el configure buscava els
programes antivirus en llocs molt extranys aixi doncs he fet un link de
/usr/local/sbin/AvpLinux cap a on jo tenia el antivirus.
Després d'això he pogut compilar l'amavis i comensar a fer proves
amb el sendmail. Per verificar si em mirava el virus als attachments. En
principi semblava q havia tingut sort pq m'afegia la línia del
X-antivirus conforme em mirava el virus, però el problema es q tots els
missatges me'ls deixava al inbox de root i no pas al dels usuaris.
Pel q he vist al FAQ hi ha diferents formes de solucionar això
però cap d'elles és inmediata i ara no tinc temps de provar-les.
Per tant, el tema queda aparcat d'aquesta manera.
Oriol Rius
http://www.dolfin.com/antivir.htm
http://aachalon.de
Oriol Rius
Es posa com a substitut del procmail i només mira el mail q entra:
http://www.vanja.com/tools/