Skip to content

Commit

Permalink
[Postfix] fix extra.cf updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Habetdin committed Aug 4, 2023
1 parent b050cb9 commit 5bf29e6
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 5bf29e6

Please sign in to comment.