Initial commit
This commit is contained in:
commit
281da76bc4
4 changed files with 55 additions and 0 deletions
32
Dockerfile
Normal file
32
Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
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"]
|
Loading…
Add table
Add a link
Reference in a new issue