cacert-devsetup/mail.Dockerfile
Jan Dittberner af156f24c6 Configure mgr and mail containers
This commit configures IMAP to work properly and makes logs of mgr and
dovecot available.
2020-12-22 14:19:31 +01:00

25 lines
No EOL
646 B
Docker

FROM debian:buster
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
dovecot-imapd \
dumb-init \
mutt \
psmisc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 143
RUN adduser --uid 1000 --gecos "catchall mailbox" --disabled-password catchall
COPY docker/imap_auth.conf /etc/dovecot/conf.d/10-auth.conf
COPY docker/imap_plain_userdb.conf /etc/dovecot/conf.d/auth-plain-userdb.conf.ext
VOLUME /home/catchall/Maildir
COPY docker/run-dovecot /usr/local/bin/run-dovecot
CMD ["dumb-init", "/usr/local/bin/run-dovecot"]