1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-02-03 21:55:57 +00:00

docker: Update Dovecot config to 2.4

Debian 13, the new stable version, updated Dovecot from 2.3 to 2.4.
Unfortunately, the new Dovecot version introduced several changes to the
configuration file that are not backwards-compatible.

https://doc.dovecot.org/2.4.2/installation/upgrade/2.3-to-2.4.html

This patch updates our docker's Dovecot config to the new version.

Thanks to Ernesto Alfonso (erjoalgo@github) for reporting this problem
in https://github.com/albertito/chasquid/issues/80.
This commit is contained in:
Alberto Bertogli
2026-02-01 12:52:16 +00:00
parent f11d2d364e
commit b4c429a335
2 changed files with 20 additions and 16 deletions

View File

@@ -85,13 +85,13 @@ chown dovecot:dovecot /data/mail/
# The default goes first because dovecot complains otherwise.
echo "# Autogenerated by entrypoint.sh" > /etc/dovecot/auto-ssl.conf
cat >> /etc/dovecot/auto-ssl.conf <<EOF
ssl_cert = </etc/letsencrypt/live/$ONE_DOMAIN/fullchain.pem
ssl_key = </etc/letsencrypt/live/$ONE_DOMAIN/privkey.pem
ssl_server_cert_file = /etc/letsencrypt/live/$ONE_DOMAIN/fullchain.pem
ssl_server_key_file = /etc/letsencrypt/live/$ONE_DOMAIN/privkey.pem
EOF
for DOMAIN in $CERT_DOMAINS; do
echo "local_name $DOMAIN {"
echo " ssl_cert = </etc/letsencrypt/live/$DOMAIN/fullchain.pem"
echo " ssl_key = </etc/letsencrypt/live/$DOMAIN/privkey.pem"
echo " ssl_server_cert_file = /etc/letsencrypt/live/$DOMAIN/fullchain.pem"
echo " ssl_server_key_file = /etc/letsencrypt/live/$DOMAIN/privkey.pem"
echo "}"
done >> /etc/dovecot/auto-ssl.conf