diff --git a/core/postfix/start.py b/core/postfix/start.py index c54b884d..32c0c0e8 100755 --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -15,8 +15,7 @@ log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING")) def start_podop(): os.setuid(getpwnam('postfix').pw_uid) - if not os.path.exists('/dev/shm/postfix'): - os.mkdir('/dev/shm/postfix',mode=0o700) + os.makedirs('/dev/shm/postfix',mode=0o700, exist_ok=True) url = "http://" + os.environ["ADMIN_ADDRESS"] + "/internal/postfix/" # TODO: Remove verbosity setting from Podop? run_server(0, "postfix", "/tmp/podop.socket", [