[SOLVED] Re: how to completely stop clamd at amavisd.service
tshikose at tshimix.cd
Fri Sep 25 18:31:59 CEST 2020
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
I did the below actions, to have clamd at amivisd.service 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
@bypass_virus_checks_maps = (1);
2. systemd modifications
# sed '/^Wants=clamd at amavisd.service$/s/^/####/'
# systemctl daemon-reload
# systemcll disable --now clamd at amavisd
# systemcll restart amavisd
And that had been enough, now the clamd at 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.
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 at 9e2e82f6e9d8 /]# cat /etc/centos-release
> > CentOS Linux release 7.8.2003 (Core)
> > [root at 9e2e82f6e9d8 /]# grep clam
> > /lib/systemd/system/amavisd.service
> > Wants=clamd at amavisd.service
> From :
> > 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.
More information about the amavis-users