Hi Damian, I thank you a lot for your response, it clearly guided me to satisfactorily working setup. I had completely over looked the configuration of amavisd.service systemd service.
I did the below actions, to have [email protected] not any more started by amavis.service. I did not used any drop-in systemd file, and had prefered to instead provided a slighy modified versions of the unit service file. 1. by pass virus checks by uncomment the relevant line in /etc/amavisd/amavisd.conf @bypass_virus_checks_maps = (1); 2. systemd modifications # sed '/^[email protected]$/s/^/####/' /usr/lib/systemd/system/amavisd.service > /etc/systemd/system/amavisd.service # systemctl daemon-reload # systemcll disable --now clamd@amavisd # systemcll restart amavisd And that had been enough, now the clamd@amavisd is kept shut down (so it is not consuming any resource) and amavisd stopped starting it (as a requirement), and emails are delivered without anti virus checks but with anti spams checks. Regards, Tshimanga PS: I added [SOLVED] in front of the subject to mimim other forums. On Fri, 2020-09-25 at 16:09 +0200, Damian wrote: > > [root@9e2e82f6e9d8 /]# cat /etc/centos-release > > CentOS Linux release 7.8.2003 (Core) > > [root@9e2e82f6e9d8 /]# grep clam > > /lib/systemd/system/amavisd.service > > [email protected] > > From [1]: > > > Wants= > > > > Configures requirement dependencies on other units. [...] > > Units listed in this option will be started if the configuring > > unit is. > You might want to look into systemd drop-in files. > > [1] > https://www.freedesktop.org/software/systemd/man/systemd.unit.html >
