|
|
|
@ -26,7 +26,7 @@ if "MESSAGE_SIZE_LIMIT" not in os.environ:
|
|
|
|
|
if "DOVECOT_HOST" not in os.environ:
|
|
|
|
|
os.environ['DOVECOT_HOST'] = 'dovecot'
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf", recursive=True):
|
|
|
|
|
for postfix_file in glob.glob("/conf/**/**.cf", recursive=True):
|
|
|
|
|
p = pathlib.Path(postfix_file)
|
|
|
|
|
p = p.relative_to(*p.parts[:2])
|
|
|
|
|
p = p.joinpath('/etc/postfix', *p.parts)
|
|
|
|
@ -37,7 +37,7 @@ for postfix_file in glob.glob("/conf/*.cf", recursive=True):
|
|
|
|
|
shutil.copyfile(postfix_file, destination)
|
|
|
|
|
os.chmod(destination, 600)
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf.jinja", recursive=True):
|
|
|
|
|
for postfix_file in glob.glob("/conf/**/**.cf.jinja", recursive=True):
|
|
|
|
|
p = pathlib.Path(postfix_file)
|
|
|
|
|
p = p.relative_to(*p.parts[:2])
|
|
|
|
|
p = p.joinpath('/etc/postfix', *p.parts)
|
|
|
|
|