From d5798b7cc17cf10ba4d54ee0374aa8f58040cca8 Mon Sep 17 00:00:00 2001 From: Kristi Jorgji Date: Tue, 26 Jul 2022 16:15:54 +0200 Subject: [PATCH] make sure mail folder has correct permissions when mounted from external docker guest --- docker-data/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-data/entrypoint.sh b/docker-data/entrypoint.sh index 15f7066..5c42844 100755 --- a/docker-data/entrypoint.sh +++ b/docker-data/entrypoint.sh @@ -7,6 +7,10 @@ groupadd -g 5000 vmail \ && usermod -aG vmail postfix \ && usermod -aG vmail dovecot +mkdir -p /var/mail/vhosts \ + && chown -R vmail:vmail /var/mail/vhosts \ + && chmod -R 775 /var/mail/vhosts + # apply ansible configs cd ansible ansible-playbook playbook.yml