![]() This page is part of the EmailServer article. ClamAV AntivirusClam AntiVirus is a totally free -in all senses of the word- antivirus scanner. It is released under the GPL and has seen a lot of activity in the recent past. ClamAV is available as a ready-made package. If you prefer to install from source, have a look at my older article on ClamAV. Edit LogFile /var/log/clamav/clamd.log LogFileMaxSize 10M LogTime yes LogSyslog yes PidFile /var/run/clamav/clamd.pid TemporaryDirectory /var/tmp DatabaseDirectory /var/clamav LocalSocket /var/run/clamav/clamd.socket FixStaleSocket yes MaxConnectionQueueLength 30 MaxThreads 50 ReadTimeout 300 User clamav AllowSupplementaryGroups yes ScanPE yes ScanELF yes DetectBrokenExecutables yes ScanOLE2 yes ScanMail yes ScanArchive yes ArchiveBlockEncrypted no All other parameters should be commented out, in particular Now we need to tell Amavisd-New to enable virus scanning. Edit Look for the following section in Automated update of Virus definitionsEdit the Now create a new Now Note: Make sure that the name of the socket file Testing the AntiVirusLet's restart our setup to check that everything works fine. # service postfix stop # service amavisd stop # service clamd stop # service clamd start # service amavisd start Go to the eicar antivirus test site and download the eicar.com.txt test file. Send an email with the eicar.com.txt as an attachment to a test email that you send through the server. Resources< AmavisdNew | EmailServer | SpamAssassin > Leave your comments below |