2024-07-22 20:26:20 +00:00
|
|
|
FROM debian:bookworm
|
2019-07-15 10:48:16 +00:00
|
|
|
MAINTAINER yohan <783b8c87@scimetis.net>
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2024-07-22 20:26:20 +00:00
|
|
|
ENV TZ Europe/Paris
|
2019-07-15 10:48:16 +00:00
|
|
|
RUN apt-get update && apt-get -y install dovecot-core dovecot-imapd dovecot-managesieved dovecot-sieve dovecot-solr dovecot-antispam dovecot-lmtpd
|
|
|
|
# IMAPS
|
|
|
|
EXPOSE 993
|
|
|
|
# MANAGESIEVE
|
|
|
|
EXPOSE 4190
|
|
|
|
# LMTP
|
|
|
|
#EXPOSE 24
|
|
|
|
COPY 10-master.conf /etc/dovecot/conf.d/
|
|
|
|
COPY 10-logging.conf /etc/dovecot/conf.d/
|
|
|
|
COPY 10-auth.conf /etc/dovecot/conf.d/
|
2019-07-15 21:03:02 +00:00
|
|
|
COPY 10-ssl.conf /etc/dovecot/conf.d/
|
2019-07-15 11:16:12 +00:00
|
|
|
#COPY 15-lda.conf /etc/dovecot/conf.d/
|
2019-07-15 10:48:16 +00:00
|
|
|
COPY 20-lmtp.conf /etc/dovecot/conf.d/
|
2019-07-15 21:33:20 +00:00
|
|
|
COPY dovecot-openssl.cnf /root/
|
2019-07-15 21:35:47 +00:00
|
|
|
RUN cp /usr/share/dovecot/mkcert.sh /root/
|
2019-07-15 21:33:20 +00:00
|
|
|
RUN chmod +X /root/mkcert.sh
|
|
|
|
RUN cd /root; ./mkcert.sh
|
2019-07-15 11:16:12 +00:00
|
|
|
#COPY users /etc/dovecot/
|
2019-07-15 10:48:16 +00:00
|
|
|
RUN mkdir /home/yohan
|
|
|
|
RUN chown -R 1000:1000 /home/yohan
|
|
|
|
ENTRYPOINT ["/usr/sbin/dovecot", "-F", "-c", "/etc/dovecot/dovecot.conf"]
|