mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-13 13:28:30 +02:00
Fix 1294 ensure podop's socket is owned by postfix
This commit is contained in:
parent
56a6821875
commit
fa915d7862
@ -8,12 +8,13 @@ import logging as log
|
||||
import sys
|
||||
|
||||
from podop import run_server
|
||||
from pwd import getpwnam
|
||||
from socrate import system, conf
|
||||
|
||||
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
||||
|
||||
def start_podop():
|
||||
os.setuid(100)
|
||||
os.setuid(getpwnam('postfix').pw_uid)
|
||||
url = "http://" + os.environ["ADMIN_ADDRESS"] + "/internal/postfix/"
|
||||
# TODO: Remove verbosity setting from Podop?
|
||||
run_server(0, "postfix", "/tmp/podop.socket", [
|
||||
|
1
towncrier/newsfragments/1294.bugfix
Normal file
1
towncrier/newsfragments/1294.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Ensure that the podop socket is always owned by the postfix user (wasn't the case when build using non-standard base images... typically for arm64)
|
Loading…
x
Reference in New Issue
Block a user