seems to work now
This commit is contained in:
parent
01ae597637
commit
348d2e34a8
|
@ -63,6 +63,7 @@ RUN apt-get update -q --fix-missing && \
|
|||
# Enables Clamav
|
||||
RUN (echo "0 0,6,12,18 * * * /usr/bin/freshclam --quiet" ; crontab -l) | crontab -
|
||||
RUN chmod 644 /etc/clamav/freshclam.conf && freshclam
|
||||
RUN sed -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf && mkdir /var/run/clamav && chown -R clamav:root /var/run/clamav
|
||||
|
||||
# Configures Dovecot
|
||||
RUN sed -i -e 's/include_try \/usr\/share\/dovecot\/protocols\.d/include_try \/etc\/dovecot\/protocols\.d/g' /etc/dovecot/dovecot.conf
|
||||
|
@ -101,7 +102,7 @@ RUN (echo "0 4 * * * /usr/local/bin/virus-wiper" ; crontab -l) | crontab -
|
|||
# Configure Fail2ban
|
||||
COPY target/fail2ban/jail.conf /etc/fail2ban/jail.conf
|
||||
COPY target/fail2ban/filter.d/dovecot.conf /etc/fail2ban/filter.d/dovecot.conf
|
||||
RUN echo "ignoreregex =" >> /etc/fail2ban/filter.d/postfix-sasl.conf
|
||||
RUN echo "ignoreregex =" >> /etc/fail2ban/filter.d/postfix-sasl.conf && mkdir /var/run/fail2ban
|
||||
|
||||
# Enables Pyzor and Razor
|
||||
USER amavis
|
||||
|
@ -153,7 +154,7 @@ RUN chmod +x /usr/local/bin/*
|
|||
|
||||
EXPOSE 25 587 143 993 110 995 4190
|
||||
|
||||
CMD /usr/local/bin/start-mailserver.sh
|
||||
CMD /usr/local/bin/start-mailserver.sh > /var/log/container-startup.log
|
||||
|
||||
|
||||
ADD target/filebeat.yml.tmpl /etc/filebeat/filebeat.yml.tmpl
|
||||
|
|
|
@ -1253,7 +1253,7 @@ notify 'taskgrp' "#"
|
|||
notify 'taskgrp' "#"
|
||||
notify 'taskgrp' ""
|
||||
|
||||
supervisord -c /etc/supervisor/conf.d/supervisor-app.conf
|
||||
supervisord -c /etc/supervisor/supervisord.conf
|
||||
|
||||
register_functions
|
||||
|
||||
|
@ -1269,7 +1269,7 @@ notify 'taskgrp' "# $HOSTNAME is up and running"
|
|||
notify 'taskgrp' "#"
|
||||
notify 'taskgrp' ""
|
||||
|
||||
|
||||
touch /var/log/mail/mail.log
|
||||
tail -fn 0 /var/log/mail/mail.log
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,6 @@ autostart=false
|
|||
autorestart=true
|
||||
command = /usr/sbin/rsyslogd -n
|
||||
|
||||
|
||||
# Couldn't figure out how to run this in the foreground. We'll start it without supervisor.
|
||||
#[program:saslauthd]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /etc/init.d/saslauthd start
|
||||
|
||||
[program:fail2ban]
|
||||
startsecs=0
|
||||
autostart=false
|
||||
|
@ -36,13 +28,6 @@ autostart=false
|
|||
autorestart=true
|
||||
command = /usr/sbin/opendmarc -f -p local:/var/run/opendmarc/opendmarc.sock
|
||||
|
||||
# Couldn't figure out how to run this in the foreground. We'll start it without supervisor.
|
||||
#[program:postfix]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /etc/init.d/postfix start
|
||||
|
||||
[program:dovecot]
|
||||
startsecs=0
|
||||
autostart=false
|
||||
|
@ -55,13 +40,6 @@ autostart=false
|
|||
autorestart=true
|
||||
command = /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
|
||||
|
||||
# Couldn't figure out how to run this in the foreground. We'll start it without supervisor.
|
||||
#[program:fetchmail]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /usr/bin/fetchmail
|
||||
|
||||
[program:clamav]
|
||||
startsecs=0
|
||||
autostart=false
|
||||
|
@ -79,3 +57,23 @@ startsecs=0
|
|||
autostart=false
|
||||
autorestart=true
|
||||
command = /usr/sbin/amavisd-new foreground
|
||||
|
||||
|
||||
# Couldn't figure out how to run these in the foreground. We'll start them without supervisor.
|
||||
#[program:fetchmail]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /usr/bin/fetchmail
|
||||
|
||||
#[program:postfix]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /etc/init.d/postfix start
|
||||
|
||||
#[program:saslauthd]
|
||||
#startsecs=0
|
||||
#autostart=false
|
||||
#autorestart=true
|
||||
#command = /etc/init.d/saslauthd start
|
||||
|
|
Loading…
Reference in New Issue