1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-26 03:52:50 +02:00

Add a basic clamav server

This commit is contained in:
Pierre Jaury 2016-03-02 21:26:17 +01:00
parent c55c1202d6
commit e9ae250d7d
4 changed files with 91 additions and 0 deletions

11
clamav/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine
RUN apk add --update \
clamav \
&& rm -rf /var/cache/apk/*
COPY conf /etc/clamav
COPY start.sh /start.sh
CMD ["/start.sh"]

56
clamav/conf/clamd.conf Normal file
View File

@ -0,0 +1,56 @@
###############
# General
###############
DatabaseDirectory /data
LogFile /logs/clamav.log
LogTime yes
PidFile /run/clamav/clamd.pid
TCPSocket 3310
TCPAddr 0.0.0.0
Foreground yes
###############
# Results
###############
DetectPUA yes
ExcludePUA NetTool
ExcludePUA PWTool
AlgorithmicDetection yes
Bytecode yes
###############
# Scan
###############
ScanPE yes
DisableCertCheck yes
ScanELF yes
DetectBrokenExecutables yes
ScanOLE2 yes
ScanPDF yes
ScanSWF yes
ScanMail yes
PhishingSignatures yes
PhishingScanURLs yes
ScanHTML yes
ScanArchive yes
###############
# Scan
###############
MaxScanSize 150M
MaxFileSize 30M
MaxRecursion 10
MaxFiles 15000
MaxEmbeddedPE 10M
MaxHTMLNormalize 10M
MaxHTMLNoTags 2M
MaxScriptNormalize 5M
MaxZipTypeRcg 1M
MaxPartitions 128
MaxIconsPE 200
PCREMatchLimit 10000
PCRERecMatchLimit 10000

View File

@ -0,0 +1,20 @@
###############
# General
###############
DatabaseDirectory /data
UpdateLogFile /logs/freshclam.log
LogTime yes
PidFile /run/clamav/freshclam.pid
DatabaseOwner root
Foreground yes
###############
# Updates
###############
DatabaseMirror database.clamav.net
ScriptedUpdates yes
NotifyClamd /etc/clamav/clamd.conf
SafeBrowsing yes
Bytecode yes

4
clamav/start.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
freshclam
clamd