[Dovecot] Remove fixed uid and gid

master
André 2018-10-02 10:31:22 +02:00
parent fc9c0c83b0
commit 2af2f7836d
2 changed files with 2 additions and 3 deletions

View File

@ -89,8 +89,7 @@ EOF
cat <<EOF > /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

View File

@ -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