1 (edited by Straykat 2015-04-16 13:38:46)

Topic: howto stop clamav

==== Required information ====
- iRedMail version: 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):ap
- Linux/BSD distribution name and version: 14.04
- Related log if you're reporting an issue:
====

I'm running on a vps and ram space is tight.  I have stopped clamav and that free'd up about 300mb. Perfect. 
service clam-av stop
but how do I make this change perm. on boot?

I found Zhang's answer below, but it is now to old to be relevant as the file no longer exists.  I found the line in 50-user but changing it did not stop clamav from starting at bootup.

1) Disable ClamAV services (clamd, freshclamd)
2) Uncomment out below line in /etc/amavisd.conf, and set it to 0. Then restart Amavisd service.
@bypass_virus_checks_maps = (0);  # controls running of anti-virus code
That's all

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: howto stop clamav

The 2 steps you mentioned are required, and you should stop clamav service with 'update-rc.d' command on Debian/Ubuntu, so that it won't start after system rebooted.

3

Re: howto stop clamav

Thanks Zhang, It worked perfectly. 
FYI Folks this is Ubuntu 14.04 and these steps worked for me.
1) Stop clamav
/etc/init.d/clamav-daemon stop
2) Uncomment out the below line in /etc/amavis/conf.d/50-user, and set it to 0.
@bypass_virus_checks_maps = (0);  # controls running of anti-virus code
3) Remove clamav from startup
update-rc.d -f clamav-daemon remove
4) Remove clamav from startup
update-rc.d -f clamav-freshclam remove