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 <noreply@anthropic.com>
This commit is contained in:
@@ -164,5 +164,9 @@ chown -R postfix:postfix /data/postfix/queue
|
|||||||
# "Connect to the Postfix showq service: Permission denied" and the panel cannot
|
# "Connect to the Postfix showq service: Permission denied" and the panel cannot
|
||||||
# read the queue (the Queue card and the Outbound queue page).
|
# read the queue (the Queue card and the Outbound queue page).
|
||||||
chgrp postdrop /data/postfix/queue/public /data/postfix/queue/maildrop
|
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
|
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user