Online help for LANMailServer

ClamAV/ClamWin/Clamd with LANMailServer
You must download and install the software yourself, and administrator rights are required.
Install ClamWin
Download the latest version of ClamWin from http://de.clamwin.com/ or https://sourceforge.net/projects/clamwin/files/ ("Download latest version") and install ClamWin on the computer where LANMailServer is installed. Then test to ensure ClamWin runs correctly.
Install Clamd
Clamd is required to run ClamAV as a service. LANMailServer passes emails to Clamd via Port 3310, which scans them for viruses and provides a result indicating infected/not infected.
Download Clamd from https://oss.netfarm.it/clamav/. Download the 32-bit version (x86) (clamav-x86-0.x.x.7z), as ClamWin is a 32-bit application.
- Extract the 7Zip file to a new folder.
- Copy the files CLAMD.EXE and CLAMD.CONF to the ClamWin\bin folder, usually located at C:\Program Files (x86)\ClamWin\bin.
- Important: If the Clamd version is newer than the ClamWin version, also copy all libclam.dll files to the ClamWin\bin folder; otherwise, Clamd will not run.
- Using a text editor (e.g., Notepad/Windows Notepad as Administrator), open the file clamd.conf and modify the LogFile and DatabaseDirectory settings as follows:
LogFile C:\ProgramData\.clamwin\log\clamd.log
DatabaseDirectory C:\ProgramData\.clamwin\db - The Clamd service supports files up to 25 MB. To scan larger emails, add the StreamMaxLength option to the clamd.conf file with the size specified in megabytes, e.g., 30 MB:
StreamMaxLength 30M - Save the clamd.conf file.
- Open the Command Prompt (Windows Key + R, type cmd, and press Enter). Then enter:
cd %ProgramFiles(x86)%\ClamWin\bin
Press Enter. - Install the Clamd service using:
clamd --install - If an error message is displayed:
ERROR: This tool requires libclamav with functionality level XXX or higher (current f-level: XXX)
then not all libclam.dll files were correctly copied. - Open Windows Services (Windows Key + R, type services.msc, and press Enter), locate the service "ClamWin Free Antivirus Scanner Service," modify its properties to set the startup type to "Automatic," and start the service if it is not already running.
In the LANMailServer settings, you can now activate email scanning with ClamAV.
Update Clamd
Whenever you update ClamWin, Clamd must also be updated. Download the correct version from https://oss.netfarm.it/clamav/, stop the "ClamWin Free Antivirus Scanner Service," and copy only the updated clamd.exe file into the ClamWin folder. Do not copy the .conf file; otherwise, you will need to reconfigure it.
Important: The version of Clamd from https://oss.netfarm.it/clamav/ must match the ClamWin version. If Clamd is newer, always copy the libclam*-DLL files as well. Do not install an older version of Clamd.
Manual last updated: Fri, 4 Apr 2025 10:59:06 +0100
Manual as complete RSS feed: Manual as RSS feed
Manual localized with Microsoft Copilot
Erstellt mit RSSWriter https://www.rsswriter.de