From 0e2ef0f8c296f84f1fe6890286986b2d9139a213 Mon Sep 17 00:00:00 2001 From: Robert Dolca Date: Sat, 20 Feb 2016 02:16:54 +0000 Subject: [PATCH] Allow custom main.cf settings --- start-mailserver.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/start-mailserver.sh b/start-mailserver.sh index bcabaa72..8756643a 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -173,6 +173,15 @@ case $DMS_SSL in esac +if [ -f /tmp/postfix/main.cf ]; then + while read line; do + postconf -e "$line" + done < /tmp/postfix/main.cf + echo "Loaded '/tmp/postfix/main.cf'" +else + echo "==> Warning: '/tmp/postfix/main.cf' is not provided. No extra postfix settings loaded." +fi + echo "Fixing permissions" chown -R 5000:5000 /var/mail mkdir -p /var/log/clamav && chown -R clamav:root /var/log/clamav