Fix password_file and remove readOnly for secrets dir

This commit is contained in:
Quentin Legot 2023-10-10 17:32:29 +02:00
parent 7778b1254b
commit f363a5cdb4
3 changed files with 3 additions and 4 deletions

View File

@ -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 wget https://github.com/dovecot/docker/blob/main/2.3.21/dovecot.list
# RUN cp dovecot.list /etc/apt/sources.list.d # 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 COPY dovecot.conf /etc/dovecot/dovecot.conf
EXPOSE 24 EXPOSE 24

View File

@ -1,2 +1,2 @@
user:{plain}password user:{PLAIN}password
user2:{plain}password2 user2:{PLAIN}password2

View File

@ -37,7 +37,6 @@ spec:
- name: dovecot-persistent-storage - name: dovecot-persistent-storage
mountPath: "/etc/dovecot/secrets" mountPath: "/etc/dovecot/secrets"
subPath: secrets subPath: secrets
readOnly: true
- name: dovecot-persistent-storage - name: dovecot-persistent-storage
subPath: storage subPath: storage
mountPath: "/home" mountPath: "/home"