# Remove clamav-daemon and spamd

**URL:** <https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843>\
**Category:** General Questions\
**Created:** [June 23, 2024, 3:36pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843 "2024-06-23T15:36:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![raffael1983](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@raffael1983](https://forum.hestiacp.com/u/raffael1983)\
**Post date:** [June 23, 2024, 3:36pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/1 "2024-06-23T15:36:38Z")

</div>

I don’t use email on the VPS and the clamav-daemon and spamd services are consuming around 2.5GB RAM.

Just by stopping the service it activates when restarted.

How to remove without damaging HestiaCP?

---

<div class="post-metadata">

**Author:** ![yunli](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/yunli/32/9695_2.png) [@yunli](https://forum.hestiacp.com/u/yunli)\
**Post date:** [June 23, 2024, 3:49pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/2 "2024-06-23T15:49:31Z")

</div>

The web interface background can stop running related programs. You can log in to the hestia panel to manage and view: 8083/list/server/

---

<div class="post-metadata">

**Author:** ![raffael1983](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@raffael1983](https://forum.hestiacp.com/u/raffael1983)\
**Post date:** [June 23, 2024, 4:18pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/3 "2024-06-23T16:18:32Z")

</div>

> [@raffael1983](#):
>
> the service it activates when restarted.

The service it activates when Debian 12 restarted. Is there a way to not start when restarting the operating system?

---

<div class="post-metadata">

**Author:** ![yunli](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/yunli/32/9695_2.png) [@yunli](https://forum.hestiacp.com/u/yunli)\
**Post date:** [June 23, 2024, 4:23pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/4 "2024-06-23T16:23:01Z")

</div>

If reinstalling is not troublesome, it is recommended to reinstall hestia. Choose not to install unnecessary components. If it is troublesome, it is recommended to remove it from the relevant configuration of hestia (this may usually cause crash due to misoperation). If the amount of data is not large, it is recommended to reinstall

---

<div class="post-metadata">

**Author:** ![yunli](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/yunli/32/9695_2.png) [@yunli](https://forum.hestiacp.com/u/yunli)\
**Post date:** [June 23, 2024, 4:27pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/5 "2024-06-23T16:27:30Z")

</div>

If you are worried about losing access, you can choose to order a new server that can be cancelled at any time. Then, after the existing data is successfully imported into the new server, resolve the domain IP to the new server. Then reset the original server data. This way, the experience (viewer) will not be interrupted.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [June 23, 2024, 4:49pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/6 "2024-06-23T16:49:03Z")

</div>

There is no need to reinstall.

```t
systemctl disable spamd
systemctl stop spamd
systemctl disable clamav-daemon
systemctl stop clamav-daemon
v-change-sys-config-value ANTIVIRUS_SYSTEM ''
v-change-sys-config-value ANTISPAM_SYSTEM ''

```

Edit exim4 conf `/etc/exim4/exim4.conf.template` and comment these lines:

Before:

```t
SPAMASSASSIN = yes
SPAM_SCORE = 50
SPAM_REJECT_SCORE = 100
CLAMD = yes

```

After:

```t
#SPAMASSASSIN = yes
#SPAM_SCORE = 50
#SPAM_REJECT_SCORE = 100
#CLAMD = yes

```

Save the file and restart exim.

```auto
systemctl restart exim4

```

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 23, 2024, 8:42pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/7 "2024-06-23T20:42:58Z")

</div>

Technically only having out CLAMD / SPAMASSASSIN is enough but should not matter to do the rest …

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 23, 2024, 8:43pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/8 "2024-06-23T20:43:51Z")

</div>

There is zero reasons to reinstall it … Unless you like to waste your time…

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [July 23, 2024, 8:44pm UTC](https://forum.hestiacp.com/t/remove-clamav-daemon-and-spamd/14843/9 "2024-07-23T20:44:33Z")

</div>

Closed on July 23, 2024, 8:44pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
