From f363a5cdb467150367d0321918277be2cf72610c Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 10 Oct 2023 17:32:29 +0200 Subject: [PATCH] Fix password_file and remove readOnly for secrets dir --- dockerfiles/dovecot/Dockerfile | 2 +- dockerfiles/dovecot/password_file | 4 ++-- kustomize/dovecot-deployment.yaml | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dockerfiles/dovecot/Dockerfile b/dockerfiles/dovecot/Dockerfile index 2141e52..3c68cf1 100644 --- a/dockerfiles/dovecot/Dockerfile +++ b/dockerfiles/dovecot/Dockerfile @@ -8,7 +8,7 @@ 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/secrets/dovecot_password_file COPY dovecot.conf /etc/dovecot/dovecot.conf EXPOSE 24 diff --git a/dockerfiles/dovecot/password_file b/dockerfiles/dovecot/password_file index a39e466..ab7c372 100644 --- a/dockerfiles/dovecot/password_file +++ b/dockerfiles/dovecot/password_file @@ -1,2 +1,2 @@ -user:{plain}password -user2:{plain}password2 \ No newline at end of file +user:{PLAIN}password +user2:{PLAIN}password2 \ No newline at end of file diff --git a/kustomize/dovecot-deployment.yaml b/kustomize/dovecot-deployment.yaml index 792d34c..5c6ec3a 100644 --- a/kustomize/dovecot-deployment.yaml +++ b/kustomize/dovecot-deployment.yaml @@ -37,7 +37,6 @@ spec: - name: dovecot-persistent-storage mountPath: "/etc/dovecot/secrets" subPath: secrets - readOnly: true - name: dovecot-persistent-storage subPath: storage mountPath: "/home"