Although in the majority of cases, Архива receives emails for archiving after they have already been processed by the mail server's antivirus scanner, for extra protection, it is possible to configure Архива to perform additional antivirus scanning. To enable this feature, it is necessary to install the ClamAV antivirus scanner (preferably on the same machine running Архива)
Windows Setup Instructions
Please refer to the Clam-AV website. Modify the clamd.conf file as in the Ubuntu setup instructions below.
Ubuntu Setup Instructions
Install the ClamAV antivirus scanner from the terminal prompt as follows:
Modify the /etc/clamav/clamd.conf configuration file as follows:
LocalSocket /var/run/clamav/clamd.ctl
TCPSocket 3310
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600
Foreground false
Debug false
ScanPE true
ScanOLE2 true
ScanHTML true
DetectBrokenExecutables false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 50
SendBufTimeout 200
MaxQueue 100
ExtendedDetectionInfo true
OLE2BlockMacros false
StreamMaxLength 25M
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
OfficialDatabaseOnly false
CrossFilesystems true
Note: The line TCPSocket 3310 was added to the configuration above. This causes Clam to listen on port 3310 for scanning jobs.
After modifying the configuration as above, reconfigure clamd as follows:
dpkg-reconfigure clamav-base
Архива Clam-AV Setup
Thereafter, login to the Архива console. From Configuration->Archive modify the Clamd configuration to point to the newly installed Clam deamon.
Identifying Viruses
Emails that contain viruses are still archived for record keeping purposes, however, they show up with a Bug icon in the search results. The intention is to warn users that the email may contain a virus.