1

Topic: Stop amavis + clamav + spamassasin by default after reboot

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.5-1
- Linux/BSD distribution name and version: 16.04LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

I do not need spam filtering and virus scanning

is there any way to stop these services by default every time i reboot the system?

                - amavis
        - amavis-mc
        - amavisd-snmp-subagent
        - clamav-daemon
        - clamav-freshclam
        - spamassasin

I already commented out:
#content_filter = smtp-amavis:[127.0.0.1]:10024
#-o content_filter=smtp-amavis:[127.0.0.1]:10026

----

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

2

Re: Stop amavis + clamav + spamassasin by default after reboot

I was able to stop all amavis services with these command:

update-rc.d -f amavis remove
update-rc.d -f amavisd-snmp-subagent remove
update-rc.d -f amavis-mc remove

However doing the same for clamav cant stop it from starting after reboot:

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

I also comment out in 50-user:

# Enable virus check.
#@bypass_virus_checks_maps = (
#   \%bypass_virus_checks,
#   \@bypass_virus_checks_acl,
#   $bypass_virus_checks_re,
#   );


I did all of the above but both clamav services still startup after reboot

any suggestions?

3

Re: Stop amavis + clamav + spamassasin by default after reboot

We have tutorial for you:
http://www.iredmail.org/docs/completely … assin.html

4

Re: Stop amavis + clamav + spamassasin by default after reboot

I did all the steps mentioned in the tutorial.
The last step says "Disable network services: Amavisd, ClamAV."

So I looked up the list of running services and see that
- amavis
- amavis-mc
- amavisd-snmp-subagent
- clamav-daemon
- clamav-freshclam
IS still running after system reboot

So thats why I did:
update-rc.d -f amavis remove
update-rc.d -f amavisd-snmp-subagent remove
update-rc.d -f amavis-mc remove
to stop it from loading when i reboot

However the same commands for ClamAV services don't work:
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
ClamAV services are still running after reboot

5

Re: Stop amavis + clamav + spamassasin by default after reboot

Thought I'd let anyone interested in doing the same know.

The solution is:

systemctl disable clamav-daemon.service
systemctl disable clamav-freshclam.service

6

Re: Stop amavis + clamav + spamassasin by default after reboot

Thanks for sharing. smile