From 281da76bc41090aa834a29934d18257d6ea1642e Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 12 Aug 2020 09:29:09 +0200 Subject: [PATCH] Initial commit --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ msmtp/msmtprc | 7 +++++++ msmtp/revaliases | 7 +++++++ supervisord.conf | 9 +++++++++ 4 files changed, 55 insertions(+) create mode 100644 Dockerfile create mode 100644 msmtp/msmtprc create mode 100644 msmtp/revaliases create mode 100644 supervisord.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..62c4cd9 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/msmtp/msmtprc b/msmtp/msmtprc new file mode 100644 index 0000000..a90f7bd --- /dev/null +++ b/msmtp/msmtprc @@ -0,0 +1,7 @@ +account default +host postfix +maildomain zom.bi +auth off +port 25 +from mailsystem@zom.bi + diff --git a/msmtp/revaliases b/msmtp/revaliases new file mode 100644 index 0000000..5639ef3 --- /dev/null +++ b/msmtp/revaliases @@ -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. + diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..88af049 --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,9 @@ +[supervisord] +nodaemon=true + +[program:rsyslog] +command=/usr/sbin/rsyslogd -n + +[program:dovecot] +command=dovecot -F -c /etc/dovecot/dovecot.conf +