Fix password_file not existing in dovecot pods
authorize plaintext fix password file Added a startup.sh file
This commit is contained in:
parent
f363a5cdb4
commit
d9cb537a61
@ -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" ]
|
||||
CMD [ "startup.sh" ]
|
@ -25,6 +25,7 @@ userdb {
|
||||
}
|
||||
|
||||
ssl=no
|
||||
disable_plaintext_auth=no
|
||||
# ssl_cert=<cert.pem
|
||||
# ssl_key=<key.pem
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
user:{PLAIN}password
|
||||
user2:{PLAIN}password2
|
||||
user:{PLAIN}password:::
|
||||
user2:{PLAIN}password2:::
|
5
dockerfiles/dovecot/startup.sh
Normal file
5
dockerfiles/dovecot/startup.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp -n /etc/dovecot/dovecot_password_file /etc/dovecot/secrets/dovecot_password_file
|
||||
|
||||
exec dovecot -F
|
Loading…
Reference in New Issue
Block a user