summaryrefslogtreecommitdiff
path: root/public/fs/etc/postfix
diff options
context:
space:
mode:
Diffstat (limited to 'public/fs/etc/postfix')
-rwxr-xr-xpublic/fs/etc/postfix/main-cf.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/public/fs/etc/postfix/main-cf.sh b/public/fs/etc/postfix/main-cf.sh
index 840aa9a..da64a67 100755
--- a/public/fs/etc/postfix/main-cf.sh
+++ b/public/fs/etc/postfix/main-cf.sh
@@ -2,9 +2,14 @@
set -eu
+sitezone="$1"
+
+cfg_script="$0"
+cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)
+
source /root/config/private/config/server.domains
-source /root/config/private/config/hostname
+source /root/config/private/config/hostinfo/${sitezone}
sed -e 's/@server_domains@/'"${server_domains}"'/g' \
-e 's/@smtphost@/'"${smtphost}"'/g' \
- "$1"
+ "${cfg_srcdir}/main.cf.in"