Initial commit.

This commit is contained in:
Markus Birth 2022-11-12 23:42:46 +01:00
commit f14099054a
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
3 changed files with 99 additions and 0 deletions

49
Dockerfile Normal file
View File

@ -0,0 +1,49 @@
FROM alpine:3
LABEL org.opencontainers.image.authors="markus@birth-online.de"
ENV container=docker \
LC_ALL=C
RUN apk add --no-cache \
tini \
dovecot \
dovecot-gssapi \
dovecot-ldap \
dovecot-lmtpd \
dovecot-mysql \
dovecot-pgsql \
dovecot-pop3d \
dovecot-fts-solr \
dovecot-sqlite \
dovecot-submissiond \
ca-certificates && \
mkdir /conf && \
echo "!include_try /conf/*.conf" >> /etc/dovecot/dovecot.conf && \
mkdir /data && \
addgroup -g 1000 vmail && \
adduser -h /data -u 1000 -D -G vmail vmail && \
chown vmail:vmail /data
COPY local.conf /conf/local.conf
VOLUME ["/conf", "/data"]
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/sbin/dovecot", "-F"]
# LMTP
EXPOSE 24
# SMTP
EXPOSE 25
# POP3
EXPOSE 110
# IMAP
EXPOSE 143
# SMTPS
EXPOSE 465
# Submission
EXPOSE 587
# IMAPS
EXPOSE 993
# POP3S
EXPOSE 995

4
README.md Normal file
View File

@ -0,0 +1,4 @@
docker-dovecot
==============
Based on [dovecot/docker](https://github.com/dovecot/docker).

46
local.conf Normal file
View File

@ -0,0 +1,46 @@
## You should mount /etc/dovecot if you want to
## manage this file
mail_home=/data/%Lu
mail_location=sdbox:~/Mail
mail_uid=1000
mail_gid=1000
protocols = imap pop3 submission lmtp
ssl = no
disable_plaintext_auth = yes
auth_mechanisms = plain login cram-md5 digest-md5 scram-sha-1 scram-sha-256
first_valid_uid = 1000
last_valid_uid = 1000
userdb {
driver = passwd
args = blocking=no
}
passdb {
driver = static
args = password=pass
}
ssl=no
namespace {
inbox = yes
separator = /
name = inbox
}
service lmtp {
inet_listener {
port = 24
}
}
listen = *
log_path=/dev/stdout
info_log_path=/dev/stdout
debug_log_path=/dev/stdout