mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-29 21:46:57 +02:00
Merge #1487
1487: Fix postfix queue permissions r=mergify[bot] a=ofthesun9 ## What type of PR? bug-fix (by anticipation of a potential change in base image) ## What does this PR do? We need to check /queue permissions before starting postfix. In case of postfix/postdrop uid/gid change, postfix would fail to start ### Related issue(s) closes #1486 ## Prerequistes - [x] In case of feature or enhancement: documentation updated accordingly Co-authored-by: ofthesun9 <olivier@ofthesun.net>
This commit is contained in:
commit
d00ccc16d7
@ -64,4 +64,7 @@ if "RELAYUSER" in os.environ:
|
||||
# Run Podop and Postfix
|
||||
multiprocessing.Process(target=start_podop).start()
|
||||
os.system("/usr/libexec/postfix/post-install meta_directory=/etc/postfix create-missing")
|
||||
# Before starting postfix, we need to check permissions on /queue
|
||||
# in the event that postfix,postdrop id have changed
|
||||
os.system("postfix set-permissions")
|
||||
os.system("postfix start-fg")
|
||||
|
1
towncrier/newsfragments/1486.bugfix
Normal file
1
towncrier/newsfragments/1486.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Check postfix mailqueue permissions before start-up
|
Loading…
x
Reference in New Issue
Block a user