Using ClamAV for Virus Protection
ClamAV is a powerful antivirus software that can scan your email and your server for malicious files. It works like an antivirus program on your computer, but ClamAV scans your server. Specifically, ClamAV looks for malicious email attachments and malicious server files. It won’t find every malicious file all the time, but it’s a good weapon in your security arsenal. If you ever think your server has malicious files or has been hacked, feel free to contact our Support team. We have a dedicated security team to help you! At Liquid Web, ClamAV is pre-installed on cPanel servers but not preconfigured.
ClamAV was first designed to be controlled from the command line. But, you can set up ClamAV without any command line knowledge and use WHM and cPanel to manage your settings. This article will explain:
- Connecting ClamAV to WHM and cPanel
- Enabling Automatic Email Scanning
- Configuring File Scanning Settings
- Manual Scanning in cPanel
Connecting ClamAV to WHM and cPanel
To start using ClamAV without needing command line knowledge, you’ll enable ClamAV Connector in WHM. This will let you change ClamAV settings in WHM and scan individual cPanel accounts.
- Log into WHM. (If you are unfamiliar with WHM, see our article Getting Started with WHM).
- In the search bar, search for “Plugins” and then click on Manage Plugins.

- You’ll see the ClamAV logo and a plugin called “clamavconnector.” Check the box next to Install and keep updated and then click Save. ClamAV Connector will run through the installation process.

Enabling Automatic Email Scanning
Once you’ve installed ClamAV Connector, you can set ClamAV up to scan all incoming and outgoing mail for malware.
- In the WHM search bar, search for “Exim.” Then click on Exim Configuration Manager.

- In the Basic Editor, click on Security.

- Select the radio button for On for these two settings:
- Scan messages for malware from authenticated servers (exiscan).
- Scan outgoing messages for malware

- Click Save.
Configuring File Scanning Settings
Once you enable ClamAV Connector, every cPanel account will be able to manually scan for malware. You can change those settings in WHM.
- In the WHM search bar, search for “ClamAV.” Then click on Configure ClamAV Scanner.

- Here you can choose what scan options are available for cPanel accounts. Check the boxes next to the scans you want available in cPanel accounts:
- Scan Entire Home Directory
- Scan Mail
- Scan Public FTP Space
- Scan Public Web Space
- Make sure to click Save once you’ve chosen your settings!
- You can also grant specific scan options to each cPanel account individually by clicking the User Configuration button.

Manual Scanning in cPanel
You can scan files in your cPanel accounts as often as you’d like.
- Log into your cPanel account.
- Scroll down to the Advanced section and click on Virus Scanner.

- Select the radio button next to the files you want to scan and click Scan Now.

- If cPanel finds malicious files, you’ll be able to see the file names once ClamAV finishes its scan.










