Skip to content

Commit d2cb8ef

Browse files
committed
Ensure postfix has a default hostname
1 parent f3e7f5d commit d2cb8ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfiles/prod/data/docker-entrypoint.d/301-postfix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ set_postfix() {
8888

8989
# Postfix catch-all
9090
if [ "${enable_mail}" = "2" ]; then
91+
run "postconf -e 'myhostname=php'" "${debug}"
9192
run "postconf -e 'virtual_alias_maps=pcre:/etc/postfix/virtual'" "${debug}"
9293
run "echo '/.*@.*/ ${username}' >> /etc/postfix/virtual" "${debug}"
9394
run "newaliases" "${debug}"

0 commit comments

Comments
 (0)