From 2af2f7836d4b882eda6eb2854520d76afa95a3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 2 Oct 2018 10:31:22 +0200 Subject: [PATCH] [Dovecot] Remove fixed uid and gid --- data/Dockerfiles/dovecot/docker-entrypoint.sh | 3 +-- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/Dockerfiles/dovecot/docker-entrypoint.sh b/data/Dockerfiles/dovecot/docker-entrypoint.sh index 9c249908..db7ecb8b 100755 --- a/data/Dockerfiles/dovecot/docker-entrypoint.sh +++ b/data/Dockerfiles/dovecot/docker-entrypoint.sh @@ -89,8 +89,7 @@ EOF cat < /usr/local/etc/dovecot/sql/dovecot-dict-sql-userdb.conf driver = mysql connect = "host=/var/run/mysqld/mysqld.sock dbname=${DBNAME} user=${DBUSER} password=${DBPASS}" -default_fields = uid=vmail gid=vmail -user_query = SELECT CONCAT('maildir:/var/vmail/',maildir) AS mail, concat('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active = '1' +user_query = SELECT CONCAT('maildir:/var/vmail/',maildir) AS mail, 5000 AS uid, 5000 AS gid, concat('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active = '1' iterate_query = SELECT username FROM mailbox WHERE active='1'; EOF diff --git a/docker-compose.yml b/docker-compose.yml index 01187b6b..e5acaadc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -160,7 +160,7 @@ services: - sogo dovecot-mailcow: - image: mailcow/dovecot:1.36 + image: mailcow/dovecot:1.37 build: ./data/Dockerfiles/dovecot cap_add: - NET_BIND_SERVICE