Browse Source

[Dovecot] Really strange race condition when reading an untouched LUA file on slower systems

andryyy 5 years ago
parent
commit
b7a749208d
2 changed files with 5 additions and 1 deletions
  1. 4 0
      data/Dockerfiles/dovecot/docker-entrypoint.sh
  2. 1 1
      docker-compose.yml

+ 4 - 0
data/Dockerfiles/dovecot/docker-entrypoint.sh

@@ -306,4 +306,8 @@ for file in /hooks/*; do
   fi
 done
 
+# For some strange, unknown and stupid reason, Dovecot may run into a race condition, when this file is not touched before it is read by dovecot/auth
+# May be related to something inside Docker, I seriously don't know
+touch /var/lib/dovecot/app-passdb.lua
+
 exec "$@"

+ 1 - 1
docker-compose.yml

@@ -172,7 +172,7 @@ services:
             - sogo
 
     dovecot-mailcow:
-      image: mailcow/dovecot:1.102
+      image: mailcow/dovecot:1.103
       depends_on:
         - mysql-mailcow
       dns: