Author Topic: How to permanently disable ClamAV?  (Read 402 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
How to permanently disable ClamAV?
« on: February 01, 2025, 03:45:17 PM »
How to permanently disable ClamAV?

I executed "service clamd stop && systemctl disable clamd" om the terminal as root.
But after some time, i dont know what exactly happened, if it was an update or something, but it re-enabled itself.

How can I permanently disable it and if possible even remove from the "mail services status dashboard" ?

Offline
*****
Re: How to permanently disable ClamAV?
« Reply #1 on: February 01, 2025, 04:07:13 PM »
I'm sure a CWP update re-enabled it at some point, since it's core functionality provided & expected by CWP's mail setup. systemctl disable removes symlinks that enable the service so you would have to periodically check for the existence of the symlinks and remove them. Or simply run your command periodically (hourly, overnight, whatever).

Offline
*****
Re: How to permanently disable ClamAV?
« Reply #2 on: February 02, 2025, 12:50:53 AM »
If the service is not installed, it won't show on the dashboard.

You can try to uninstall it using
Code: [Select]
dnf remove clamav* clamd
Is there some reason you don't want an AV on your server?

Offline
*
Re: How to permanently disable ClamAV?
« Reply #3 on: February 02, 2025, 01:13:55 PM »
If the service is not installed, it won't show on the dashboard.

You can try to uninstall it using
Code: [Select]
dnf remove clamav* clamd
Is there some reason you don't want an AV on your server?

I will try that code. Thanks!

The reason is that it eats too much resources and every client already have an AV installed.

Offline
*
Re: How to permanently disable ClamAV?
« Reply #4 on: February 03, 2025, 05:29:04 PM »
If the service is not installed, it won't show on the dashboard.

You can try to uninstall it using
Code: [Select]
dnf remove clamav* clamd
Is there some reason you don't want an AV on your server?

Hi! Thanks again for helping me. Can I bother you again, please?
Is there a code to disable/uninstall AMAVIS ?

Offline
*****
Re: How to permanently disable ClamAV?
« Reply #5 on: February 03, 2025, 05:43:17 PM »
The below command will stop and remove Amavis from the server:

Code: [Select]
systemctl stop amavis
Code: [Select]
systemctl disable amavis
Code: [Select]
dnf remove amavis