Skip to content

Commit

Permalink
Merge pull request #5372 from Habetdin:staging
Browse files Browse the repository at this point in the history
[Postfix] fix extra.cf updating
  • Loading branch information
DerLinkman committed Oct 12, 2023
2 parents ce4b9c9 + 5bf29e6 commit 4375345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/Dockerfiles/postfix/postfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ fi
# Append user overrides
echo -e "\n# User Overrides" >> /opt/postfix/conf/main.cf
touch /opt/postfix/conf/extra.cf
sed -i '/myhostname/d' /opt/postfix/conf/extra.cf
sed -i '/\$myhostname/! { /myhostname/d }' /opt/postfix/conf/extra.cf
echo -e "myhostname = ${MAILCOW_HOSTNAME}\n$(cat /opt/postfix/conf/extra.cf)" > /opt/postfix/conf/extra.cf
cat /opt/postfix/conf/extra.cf >> /opt/postfix/conf/main.cf

Expand Down

0 comments on commit 4375345

Please sign in to comment.