Add /etc/mailname

This commit is contained in:
link2xt
2023-10-17 19:08:44 +00:00
parent f333226abe
commit 1ea25eb28c
2 changed files with 15 additions and 4 deletions

View File

@@ -244,6 +244,13 @@ def deploy_chatmail(mail_domain: str, mail_server: str, dkim_selector: str) -> N
restarted=dovecot_need_restart,
)
# This file is used by auth proxy.
# https://wiki.debian.org/EtcMailName
server.shell(
name="Setup /etc/mailname",
commands=[f"echo {mail_domain} >/etc/mailname; chmod 644 /etc/mailname"],
)
def callback():
result = server.shell(
commands=[