Disable clamav service if virus scanning is disabled.
Fixes #7 Thanks @miguelforsetti
This commit is contained in:
parent
f1412cf29b
commit
551faa3a28
|
@ -30,6 +30,27 @@ If you want to disable virus and spam scanning, but keep DKIM signing and discla
|
||||||
|
|
||||||
Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.
|
Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.
|
||||||
|
|
||||||
|
You may want to stop and disable ClamAV service too since it's not
|
||||||
|
called by Amavisd or other programs anymore:
|
||||||
|
|
||||||
|
```
|
||||||
|
# CentOS
|
||||||
|
systemctl disable --now clamd@amavisd
|
||||||
|
systemctl restart amavisd
|
||||||
|
|
||||||
|
# Debian/Ubuntu
|
||||||
|
systemctl disable --now clamav-daemon
|
||||||
|
systemctl restart amavis
|
||||||
|
|
||||||
|
# FreeBSD
|
||||||
|
sysrc -f /etc/rc.conf.local clamd=no
|
||||||
|
systemctl restart amavisd
|
||||||
|
|
||||||
|
# OpenBSD
|
||||||
|
rcctl disable clamd
|
||||||
|
rcctl restart amavisd
|
||||||
|
```
|
||||||
|
|
||||||
### Completely disable all features
|
### Completely disable all features
|
||||||
|
|
||||||
If you want to completely disable spam and virus scanning services, steps:
|
If you want to completely disable spam and virus scanning services, steps:
|
||||||
|
|
|
@ -59,6 +59,25 @@
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.</p>
|
<p>Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.</p>
|
||||||
|
<p>You may want to stop and disable ClamAV service too since it's not
|
||||||
|
called by Amavisd or other programs anymore:</p>
|
||||||
|
<pre><code># CentOS
|
||||||
|
systemctl disable --now clamd@amavisd
|
||||||
|
systemctl restart amavisd
|
||||||
|
|
||||||
|
# Debian/Ubuntu
|
||||||
|
systemctl disable --now clamav-daemon
|
||||||
|
systemctl restart amavis
|
||||||
|
|
||||||
|
# FreeBSD
|
||||||
|
sysrc -f /etc/rc.conf.local clamd=no
|
||||||
|
systemctl restart amavisd
|
||||||
|
|
||||||
|
# OpenBSD
|
||||||
|
rcctl disable clamd
|
||||||
|
rcctl restart amavisd
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
<h3 id="completely-disable-all-features">Completely disable all features</h3>
|
<h3 id="completely-disable-all-features">Completely disable all features</h3>
|
||||||
<p>If you want to completely disable spam and virus scanning services, steps:</p>
|
<p>If you want to completely disable spam and virus scanning services, steps:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue