Merge pull request #248 from Mailu/feature-postfix-master

Add the ability to customize the Postfix master configuration
master
kaiyou 7 years ago committed by GitHub
commit a06d1146d8

@ -5,7 +5,7 @@ for VARIABLE in `env | cut -f1 -d=`; do
sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/postfix/*.cf
done
# Override Postfix configuration
# Override Postfix main configuration
if [ -f /overrides/postfix.cf ]; then
while read line; do
postconf -e "$line"
@ -15,6 +15,16 @@ else
echo "No extra postfix settings loaded because optional '/overrides/postfix.cf' not provided."
fi
# Override Postfix master configuration
if [ -f /overrides/postfix.master ]; then
while read line; do
postconf -Me "$line"
done < /overrides/postfix.master
echo "Loaded '/overrides/postfix.master'"
else
echo "No extra postfix settings loaded because optional '/overrides/postfix.master' not provided."
fi
# Include table-map files
if ls -A /overrides/*.map 1> /dev/null 2>&1; then
cp /overrides/*.map /etc/postfix/

Loading…
Cancel
Save