|
|
@ -64,4 +64,8 @@ if "RELAYUSER" in os.environ:
|
|
|
|
# Run Podop and Postfix
|
|
|
|
# Run Podop and Postfix
|
|
|
|
multiprocessing.Process(target=start_podop).start()
|
|
|
|
multiprocessing.Process(target=start_podop).start()
|
|
|
|
os.system("/usr/libexec/postfix/post-install meta_directory=/etc/postfix create-missing")
|
|
|
|
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("chown postfix -R /queue/{active,bounce,corrupt,defer,deferred,flush,hold,incoming,maildrop,pid,private,public,saved,trace}")
|
|
|
|
|
|
|
|
os.system("chown postdrop -R /queue/{maildrop,public}")
|
|
|
|
os.system("postfix start-fg")
|
|
|
|
os.system("postfix start-fg")
|
|
|
|