dovecot/Dockerfile
2020-08-12 09:29:09 +02:00

32 lines
804 B
Docker

FROM debian:buster
EXPOSE 24 143 993 4190 10000
# LMTP IMAPS Auth/Userdb
# IMAP Sieved
RUN groupadd -r -g 500 vmail && useradd -r -u 500 -g vmail vmail
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y --no-install-recommends \
dovecot-ldap \
dovecot-imapd \
dovecot-lmtpd \
dovecot-managesieved \
msmtp \
rsyslog \
supervisor \
ca-certificates &&\
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
ln -s /usr/bin/msmtp /usr/sbin/sendmail
VOLUME /var/vmail
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
add msmtp/msmtprc /etc/msmtprc
#ENTRYPOINT ["dovecot", "-F"]
#CMD ["-c", "/etc/dovecot/dovecot.conf"]
ENTRYPOINT ["supervisord"]