Ensure postfix has a default hostname

This commit is contained in:
cytopia
2022-02-01 00:21:43 +01:00
parent f3e7f5d352
commit d2cb8ef2c3

View File

@@ -88,6 +88,7 @@ set_postfix() {
# Postfix catch-all
if [ "${enable_mail}" = "2" ]; then
run "postconf -e 'myhostname=php'" "${debug}"
run "postconf -e 'virtual_alias_maps=pcre:/etc/postfix/virtual'" "${debug}"
run "echo '/.*@.*/ ${username}' >> /etc/postfix/virtual" "${debug}"
run "newaliases" "${debug}"