Merge branch 'letzkus-fix-remove-clamav'

master
kaiyou 7 years ago
commit 897609c667

@ -55,6 +55,9 @@ EXPOSE_ADMIN=no
# Dav server implementation (value: radicale, none)
WEBDAV=none
# Antivirus solution (value: none, clamav)
ANTIVIRUS=clamav
###################################
# Mail settings
###################################

@ -70,7 +70,7 @@ services:
antivirus:
# build: clamav
image: mailu/clamav:$VERSION
image: mailu/$ANTIVIRUS:$VERSION
restart: always
env_file: .env
volumes:

@ -4,6 +4,7 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
&& apk add --no-cache rmilter@testing rsyslog bash
COPY rmilter.conf /etc/rmilter.conf
COPY rmilter-clamav.conf /etc/rmilter-clamav.conf
COPY rsyslog.conf /etc/rsyslog.conf
COPY start.sh /start.sh

@ -0,0 +1,18 @@
clamav {
# servers - clamav socket definitions in format:
servers = antivirus:3310;
# connect_timeout - timeout in miliseconds for connecting to clamav
connect_timeout = 1s;
# port_timeout - timeout in miliseconds for waiting for clamav port response
port_timeout = 4s;
# results_timeout - timeout in miliseconds for waiting for clamav response
results_timeout = 20s;
# error_time - time in seconds during which we are counting errors
error_time = 10;
# dead_time - time in seconds during which we are thinking that server is down
dead_time = 300;
# maxerrors - maximum number of errors that can occur during error_time to make us thinking that
# Default: 10
maxerrors = 10;
};

@ -20,24 +20,6 @@ strict_auth = no;
use_dcc = no;
use_redis = yes;
clamav {
# servers - clamav socket definitions in format:
servers = antivirus:3310;
# connect_timeout - timeout in miliseconds for connecting to clamav
connect_timeout = 1s;
# port_timeout - timeout in miliseconds for waiting for clamav port response
port_timeout = 4s;
# results_timeout - timeout in miliseconds for waiting for clamav response
results_timeout = 20s;
# error_time - time in seconds during which we are counting errors
error_time = 10;
# dead_time - time in seconds during which we are thinking that server is down
dead_time = 300;
# maxerrors - maximum number of errors that can occur during error_time to make us thinking that
# Default: 10
maxerrors = 10;
};
spamd {
# servers - spamd socket definitions in format:
servers = r:antispam:11333;

@ -8,5 +8,9 @@ for VARIABLE in `env | cut -f1 -d=`; do
done
rm -f /var/run/rsyslogd.pid
if [ "$ANTIVIRUS" == "clamav" ];
then
echo ".try_include /etc/rmilter-clamav.conf" >> /etc/rmilter.conf
fi
rmilter -c /etc/rmilter.conf
rsyslogd -n

Loading…
Cancel
Save