How to permanently disable ClamAV?

Started by KenobiSky, February 01, 2025, 03:45:17 PM

Previous topic - Next topic

KenobiSky

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" ?

overseer

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).

Starburst

If the service is not installed, it won't show on the dashboard.

You can try to uninstall it using
dnf remove clamav* clamd

Is there some reason you don't want an AV on your server?

KenobiSky

Quote from: Starburst 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
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.

KenobiSky

Quote from: Starburst 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
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 ?

Starburst

The below command will stop and remove Amavis from the server:

systemctl stop amavis

systemctl disable amavis

dnf remove amavis