summaryrefslogtreecommitdiff
path: root/public/fs/etc/postfix/main-cf.sh
blob: 31b48b39045bd540efc3d876b0688c7d2f490e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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/hostinfo/${sitezone}

sed -e 's/@server_domains@/'"${server_domains}"'/g' \
	-e 's/@smtphost@/'"${smtphost}"'/g'          \
	-e 's/@mailing_lists@/'"${mailing_lists}"'/g' \
	"${cfg_srcdir}/main.cf.in"