How can I disable or remove ClamAV and keep using Warden without anti-virus scanning?

Overview

This article provides step-by-step instructions for disabling antivirus scanning within Amavis via the Warden interface, stopping the ClamAV daemon to conserve system resources, and completely removing ClamAV packages from supported Linux distributions.

Prerequisites

  • Verify that no other applications, security policies, or mail filtering rules depend on the ClamAV daemon before disabling or uninstalling it.
  • Ensure you have root or sudo privileges to execute system commands and modify service configurations.

Disable Antivirus Scanning in Amavis

To disable antivirus scanning through the Warden control panel:

  1. Navigate to Warden > Settings > Content Filter Settings > Scanning Settings.
  2. Set both the Scanner template and Scanner backup template fields to None.
  3. Click the Update button to apply and save the configuration changes.

Scanner Settings

Disable the ClamAV Daemon

Disabling the ClamAV daemon stops background scanning processes and reduces memory consumption. Execute the appropriate commands for your operating system:

AlmaLinux/CloudLinux/RHEL

systemctl stop clamd@scan
systemctl stop clamav-freshclam
systemctl disable clamd@scan
systemctl disable clamav-freshclam
systemctl mask clamd@scan
systemctl mask clamav-freshclam

Debian/Ubuntu

systemctl stop clamav-daemon
systemctl stop clamav-freshclam
systemctl disable clamav-daemon
systemctl disable clamav-freshclam
systemctl mask clamav-daemon
systemctl mask clamav-freshclam

Uninstall ClamAV Completely

To permanently remove ClamAV from the system, use the package manager commands below. Ensure no dependent services require these packages before proceeding.

AlmaLinux/CloudLinux/RHEL

Note: The --nodeps flag is required to prevent the package manager from removing Amavis due to a soft dependency conflict.

rpm -e --nodeps clamav clamav-data clamav-filesystem clamav-lib clamav-update clamd

Debian/Ubuntu

apt-get remove clamav clamav-base clamav-daemon clamav-freshclam

Troubleshooting and Common Issues

  • Service fails to stop or mask: Verify the exact service name using systemctl list-units --type=service | grep clam. Ensure commands are executed with root privileges.
  • Amavis removed during ClamAV uninstall (RPM-based systems): If Amavis is unexpectedly removed, the --nodeps flag was likely omitted. Reinstall Amavis and repeat the removal command exactly as specified above.
  • Scanning remains active after UI changes: Restart the Amavis service to ensure configuration updates are applied immediately.
  • Package manager errors on Debian/Ubuntu: Run apt-get update before removal commands to resolve potential repository or dependency resolution issues.
  • disable, clamav, uninstall
  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I add stronger Postfix restrictions so that the bulk of spam is rejected at the SMTPD level before it gets processed by Amavis?

Overview Warden enables administrators to enforce stricter Postfix SMTPD restrictions. These...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I configure greylisting with Warden Anti-spam and Virus protection?

Overview Greylisting is an email filtering mechanism designed to mitigate spam by temporarily...