commit 3ff0c6e8bb64028e939cc1fc42c470fd5c1ac7bf Author: Pierre-Olivier Mercier Date: Mon Feb 12 16:21:49 2024 +0100 Initial commit, from playbooks diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..f8b9888 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,20 @@ +--- +when: + event: + exclude: + - pull_request + +labels: + platform: linux/aarch64 + +steps: + docker-build-and-publish: + image: plugins/docker + settings: + registry: registry.nemunai.re + repo: registry.nemunai.re/dovecot + auto_tag: true + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ce6fc9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3 + +RUN apk add --no-cache tini ca-certificates dovecot dovecot-ldap dovecot-lmtpd dovecot-pigeonhole-plugin dovecot-pop3d python3 + +ADD dovecot.conf /etc/dovecot/dovecot.conf + +VOLUME ["/etc/dovecot", "/srv/mail"] +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/usr/sbin/dovecot", "-F"] diff --git a/dovecot.conf b/dovecot.conf new file mode 100644 index 0000000..fbde9ca --- /dev/null +++ b/dovecot.conf @@ -0,0 +1,38 @@ +## You should mount /etc/dovecot if you want to +## manage this file + +mail_home=/srv/mail/%Lu +mail_location=sdbox:~/Mail +mail_uid=1000 +mail_gid=1000 + +protocols = imap pop3 sieve lmtp + +first_valid_uid = 1000 +last_valid_uid = 1000 + +passdb { + driver = static + args = password=pass +} + +ssl=yes +ssl_cert=