From 0ac3cf961783e1213691882ed97eecb1794580b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Tue, 8 Jan 2019 05:00:15 +0200 Subject: [PATCH] Don't recursivly chown on mailboxes. This fixes #776. Recursion is not needed, as the permissions will only need to be set on the first invocation. --- CHANGELOG.md | 1 + core/dovecot/Dockerfile | 3 ++- core/dovecot/start.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8277743d..05013478 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,7 @@ v1.6.0 - unreleased - Bug: Error when trying to log in with an account without domain ([#585](https://github.com/Mailu/Mailu/issues/585)) - Bug: Fix rainloop permissions ([#637](https://github.com/Mailu/Mailu/issues/637)) - Bug: Fix broken webmail and logo url in admin ([#792](https://github.com/Mailu/Mailu/issues/792)) +- Bug: Don't recursivly chown on mailboxes ([#776](https://github.com/Mailu/Mailu/issues/776)) v1.5.1 - 2017-11-21 ------------------- diff --git a/core/dovecot/Dockerfile b/core/dovecot/Dockerfile index 1d4f7b91..dec2b520 100644 --- a/core/dovecot/Dockerfile +++ b/core/dovecot/Dockerfile @@ -10,7 +10,8 @@ RUN pip3 install tenacity # Image specific layers under this line RUN apk add --no-cache \ dovecot dovecot-pigeonhole-plugin dovecot-fts-lucene rspamd-client bash \ - && pip3 install podop + && pip3 install podop \ + && mkdir /var/lib/dovecot COPY conf /conf COPY start.py /start.py diff --git a/core/dovecot/start.py b/core/dovecot/start.py index 8bf66efd..c97b8a05 100755 --- a/core/dovecot/start.py +++ b/core/dovecot/start.py @@ -33,5 +33,6 @@ for dovecot_file in glob.glob("/conf/*.conf"): # Run Podop, then postfix multiprocessing.Process(target=start_podop).start() -os.system("chown -R mail:mail /mail /var/lib/dovecot /conf") +os.system("chown mail:mail /mail") +os.system("chown -R mail:mail /var/lib/dovecot /conf") os.execv("/usr/sbin/dovecot", ["dovecot", "-c", "/etc/dovecot/dovecot.conf", "-F"])