Cum să oprim doar ClamAV

Deoarece ClamAV consumă mult prea multe resurse (memorie) și nu face mare lucru (spre deloc) atunci ne-am dori să oprim doar verificarea de viruși, care o facem așa:

– facem back-up ca de obicei preventiv:

cp /etc/amavis/conf.d/50-user /etc/amavis/conf.d/50-user.`date +%F.%T`

– modificăm fișierul de conf, comentând cele 2 linii care ne interesează și restartăm amavis:

vi /etc/amavis/conf.d/50-user

#@bypass_virus_checks_maps = (
#   \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);

@bypass_spam_checks_maps = (
\%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);

/etc/init.d/amavis restart

– dacă funcționează tot (verificați să fiți siguri), oprim de tot și îl și oprim să repornească la boot:

/etc/init.d/clamav-daemon stop
 /etc/init.d/clamav-freshclam stop

 update-rc.d -f clamav-daemon remove
 update-rc.d -f clamav-freshclam remove

– Acum avem un server cu mai mult ram liber în administrare clamav

PS: dacă avem monit instalat nu uitați să modificați fișierul de configurare al monit (/etc/monit/monitrc) și să comentați cu # liniile dedicate lor, altfel o să-l tot pornească.

PPS: dacă aveți IscpCP, fișierul de configurare al amavis se află la: /etc/amavis/conf.d/15-content_filter_mode

 

Is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. It is the de facto standard for mail gateway scanning. It provides a high performance mutli-threaded scanning daemon, command line utilities for on demand file scanning, and an intelligent tool for automatic signature updates. The core library provides numerous file format detection mechanisms, file unpacking support, archive support, and multiple signature languages for detecting threats.

Ultimele Știri:

    No feed items found.

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *