Mention how to remove clamav if virus scanning is disabled.

fixes #7
This commit is contained in:
Zhang Huangbin 2020-11-04 14:45:35 +08:00
parent 67ccbed711
commit 1d3e41b0ea
2 changed files with 39 additions and 13 deletions

View File

@ -33,13 +33,11 @@ Uncomment above lines (removing "# " at the beginning of each line), and restart
You may want to stop and disable ClamAV service too since it's not You may want to stop and disable ClamAV service too since it's not
called by Amavisd or other programs anymore: called by Amavisd or other programs anymore:
On CentOS, the systemd script for Amavisd service
(`/lib/systemd/system/amavisd.service`) has line
`Wants=clamd@amavisd.service`, this makes systemd to start `clamd@amavisd`
service each time before starting `amavisd` service, so you have to comment
out this line to disable clamav service.
``` ```
# CentOS
systemctl disable --now clamd@amavisd
systemctl restart amavisd
# Debian/Ubuntu # Debian/Ubuntu
systemctl disable --now clamav-daemon systemctl disable --now clamav-daemon
systemctl restart amavis systemctl restart amavis
@ -53,6 +51,22 @@ rcctl disable clamd
rcctl restart amavisd rcctl restart amavisd
``` ```
You may want to remove the packages also:
```
# CentOS
yum remove clamav clamav-lib
# Debian/Ubuntu
apt remove clamav-base
# FreeBSD
pkg remove clamav
# OpenBSD
pkg_delete clamav
```
### 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:

View File

@ -61,13 +61,11 @@
<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 <p>You may want to stop and disable ClamAV service too since it's not
called by Amavisd or other programs anymore:</p> called by Amavisd or other programs anymore:</p>
<pre><code>On CentOS, the systemd script for Amavisd service <pre><code># CentOS
(`/lib/systemd/system/amavisd.service`) has line systemctl disable --now clamd@amavisd
`Wants=clamd@amavisd.service`, this makes systemd to start `clamd@amavisd` systemctl restart amavisd
service each time before starting `amavisd` service, so you have to comment
out this line to disable clamav service. # Debian/Ubuntu
</code></pre>
<pre><code># Debian/Ubuntu
systemctl disable --now clamav-daemon systemctl disable --now clamav-daemon
systemctl restart amavis systemctl restart amavis
@ -80,6 +78,20 @@ rcctl disable clamd
rcctl restart amavisd rcctl restart amavisd
</code></pre> </code></pre>
<p>You may want to remove the packages also:</p>
<pre><code># CentOS
yum remove clamav clamav-lib
# Debian/Ubuntu
apt remove clamav-base
# FreeBSD
pkg remove clamav
# OpenBSD
pkg_delete clamav
</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>