Initial commit

This commit is contained in:
paul 2020-08-12 09:29:09 +02:00
commit 281da76bc4
4 changed files with 55 additions and 0 deletions

32
Dockerfile Normal file
View 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"]

7
msmtp/msmtprc Normal file
View file

@ -0,0 +1,7 @@
account default
host postfix
maildomain zom.bi
auth off
port 25
from mailsystem@zom.bi

7
msmtp/revaliases Normal file
View file

@ -0,0 +1,7 @@
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.

9
supervisord.conf Normal file
View file

@ -0,0 +1,9 @@
[supervisord]
nodaemon=true
[program:rsyslog]
command=/usr/sbin/rsyslogd -n
[program:dovecot]
command=dovecot -F -c /etc/dovecot/dovecot.conf