From 3f0d15c9e38e50d78d8dc120dba31a5b5062b546 Mon Sep 17 00:00:00 2001 From: Mix Date: Sun, 11 Oct 2026 00:31:36 +0300 Subject: [PATCH] entrypoint: the queue directory and pid/ stay owned by root The recursive chown to postfix at the end of the entrypoint also takes the queue directory itself and pid/, which Postfix keeps owned by root; postfix-script logs warning: not owned by root for both at every start. They are handed back to root after the chown, as public/ and maildrop/ are handed back to postdrop. Co-Authored-By: Claude Opus 5.5 --- build/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 63c11fa..e61a99e 100644 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -164,5 +164,9 @@ chown -R postfix:postfix /data/postfix/queue # "Connect to the Postfix showq service: Permission denied" and the panel cannot # read the queue (the Queue card and the Outbound queue page). chgrp postdrop /data/postfix/queue/public /data/postfix/queue/maildrop +# It would also leave the queue directory itself and pid/ owned by postfix. +# Postfix keeps those two owned by root (master, which runs as root, is the only +# writer) and logs "warning: not owned by root" for each at every start. +chown root /data/postfix/queue /data/postfix/queue/pid exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf