From f88d96ab71ddf9c782c26a92fae2cecd05e88c96 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 14 Nov 2018 13:31:56 -0500 Subject: [PATCH] update postfix Signed-off-by: Jess Frazelle --- postfix/service/postfix/run | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/postfix/service/postfix/run b/postfix/service/postfix/run index dd98514..97c0e92 100755 --- a/postfix/service/postfix/run +++ b/postfix/service/postfix/run @@ -80,4 +80,17 @@ if [[ ! -z "$SASL_AUTH" ]]; then chmod 600 /etc/postfix/sasl_passwd.db fi -/usr/lib/postfix/master -c /etc/postfix -d 2>&1 +if [[ -f "/usr/libexec/postfix/master" ]]; then + cmd="/usr/libexec/postfix/master" +fi + +if [[ -f "/usr/lib/postfix/master" ]]; then + cmd="/usr/lib/postfix/master" +fi + +if [[ -z "$cmd" ]]; then + echo "Could not find postfix master in /usr/lib or /usr/libexec" + exit 1 +fi + +"$cmd" -c /etc/postfix -d 2>&1