From d9cb537a61f41fa67edf2386e689020515269c6e Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Wed, 11 Oct 2023 15:08:26 +0200 Subject: [PATCH] Fix password_file not existing in dovecot pods authorize plaintext fix password file Added a startup.sh file --- dockerfiles/dovecot/Dockerfile | 6 ++++-- dockerfiles/dovecot/dovecot.conf | 1 + dockerfiles/dovecot/password_file | 4 ++-- dockerfiles/dovecot/startup.sh | 5 +++++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 dockerfiles/dovecot/startup.sh diff --git a/dockerfiles/dovecot/Dockerfile b/dockerfiles/dovecot/Dockerfile index 3c68cf1..19df711 100644 --- a/dockerfiles/dovecot/Dockerfile +++ b/dockerfiles/dovecot/Dockerfile @@ -8,11 +8,13 @@ RUN apk --no-cache add dovecot dovecot-lmtpd dovecot-submissiond bash # RUN wget https://github.com/dovecot/docker/blob/main/2.3.21/dovecot.list # RUN cp dovecot.list /etc/apt/sources.list.d -COPY password_file /etc/dovecot/secrets/dovecot_password_file +COPY password_file /etc/dovecot/dovecot_password_file COPY dovecot.conf /etc/dovecot/dovecot.conf +COPY startup.sh /usr/bin/startup.sh +RUN chmod +x /usr/bin/startup.sh EXPOSE 24 EXPOSE 143 EXPOSE 993 -CMD [ "dovecot", "-F" ] \ No newline at end of file +CMD [ "startup.sh" ] \ No newline at end of file diff --git a/dockerfiles/dovecot/dovecot.conf b/dockerfiles/dovecot/dovecot.conf index ef59f46..b2e671e 100644 --- a/dockerfiles/dovecot/dovecot.conf +++ b/dockerfiles/dovecot/dovecot.conf @@ -25,6 +25,7 @@ userdb { } ssl=no +disable_plaintext_auth=no # ssl_cert=