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>
master
bors[bot] 4 years ago committed by GitHub
commit d00ccc16d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")

@ -0,0 +1 @@
Check postfix mailqueue permissions before start-up
Loading…
Cancel
Save