Merge branch 'fix-remove-clamav' of https://github.com/letzkus/Mailu into letzkus-fix-remove-clamav

master
kaiyou 7 years ago
commit 89228c5b4b

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

@ -70,7 +70,7 @@ services:
antivirus: antivirus:
# build: clamav # build: clamav
image: mailu/clamav:$VERSION image: mailu/$ANTIVIRUS:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: 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 && apk add --no-cache rmilter@testing rsyslog bash
COPY rmilter.conf /etc/rmilter.conf COPY rmilter.conf /etc/rmilter.conf
COPY rmilter-clamav.conf /etc/rmilter-clamav.conf
COPY rsyslog.conf /etc/rsyslog.conf COPY rsyslog.conf /etc/rsyslog.conf
COPY start.sh /start.sh 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_dcc = no;
use_redis = yes; 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 { spamd {
# servers - spamd socket definitions in format: # servers - spamd socket definitions in format:
servers = r:antispam:11333; servers = r:antispam:11333;

@ -8,5 +8,9 @@ for VARIABLE in `env | cut -f1 -d=`; do
done done
rm -f /var/run/rsyslogd.pid 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 rmilter -c /etc/rmilter.conf
rsyslogd -n rsyslogd -n

Loading…
Cancel
Save