1
0
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:
Florent Daigniere 2021-07-24 14:39:40 +02:00
parent 56a6821875
commit fa915d7862
2 changed files with 3 additions and 1 deletions

View File

@ -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", [

View 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)