ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. It is the de facto standard for mail gateway scanning.
Designed for Mail Servers
It provides a high performance mutli-threaded scanning scalable anti-virus system designed especially for e-mail scanning on multi-threaded mail gateways, such as Mailtraq.
It performs well: See http://virus.untangle.com/
ClamAV is widely used and respected: See User references...
It is free.
Windows 7, Windows 8, Windows 10 and all Windows Server editions
Note that Windows Defender will suspend operation of Clam.
Integrating Clam Antivirus with Mailtraq
Step 1 - Download and install ClamAV on your machine.
Create a folder in the root of C-drive here: C:\clamav
Download the Mailtraq ClamAV package from here: ClamAV for Mailtraq and unpack it into C:\clamav
This Mailtraq ClamAV package is suitable for both 32-bit and 64-bit versions of Windows, including Server editions.
Note: Any version 0.97.n update warnings do not apply to this package and can be ignored.
Download and open the file in explorer (it is a Zip file), then drag the "clamav" directory to your "c:\" drive
You must make sure there is a \db folder for Clam, as this is where Freshclam will place the setup database and future updates. Check you have a folder 'C:\clamav\db' - if not, then make one manually.
Step 2 - Download antivirus signature data
Locate and execute (run) freshclam.exe This will download your initial database.
You MUST run freshclam successfully before configuring Mailtraq otherwise there is no Database for the engine to connect to.
Step 3 - Schedule 'Freshclam' - the virus signature updater.
You should update clamAV's virus signatures regularly by running C:\clamAV\freshclam.exe
which is included in the download above.
This should be set to run at least daily as a Windows Scheduled task?
You should check from time to time that the updates are happening as expected.
You can confirm the update is working by checking the version status and update date & time in the Mailtraq Anti-Virus Manager dialog.
Step 4 - Configure Mailtraq
Open the Mailtraq Console, Options | Anti Virus Integration ...
The Anti-Virus Manager will open (see image, right)
You MUST run freshclam.exe successfully before configuring Mailtraq otherwise there is no Database for the engine to connect to.
Click on the 'CLAM' line to select it, and click the [Properties] button (don't worry that it says it can't connect to it yet, that is simply because you haven't told it where to find it...)
The 'ClamD Configuration' dialog will open.
Set ClamD to use Port 3310, (adjusting any Windows Firewall restrictions required elsewhere on your system),
Set the Path to clamd.exe to "c:\clamav\clamd.exe"
If the Mailtraq anti-virus dialogue appears to freeze, use the Windows Task Manager to find and kill the "clamd.exe" process and repeat step (4). This can happen if there is an existing installation or if it locks up during first execution.
Then, [OK] back to the Console.
The status line should now show Installed as 'Yes' and Status as 'Operational'
If the status does not update: Stop the Mailtraq service. Reboot the server and try again.
Ensure the checkbox against CLAM is checked to tell Mailtraq to run the emails through CLAM.
Mailtraq will now manage starting and running ClamAV.
Mailtraq can run a test against the industry standard EICAR-AV-Test by using the [Test] button in the main Manager window.
Be aware other Antivirus software on the machine can prevent the test from completing.