From abb2941e4b5183d5f27079142aa8018759adcee2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 13 Feb 2026 14:59:58 +0100 Subject: [PATCH] install_postfix_advanced.sh: fix error checcking if 'policy-spf' is already present in master.cf file. --- install_postfix_advanced.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index 19df54f..0864b0b 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -4164,7 +4164,7 @@ EOF # - Add support for policyd-spf service # - - if ! $(grep -iq -E "^policyd-spf\s+" "$postfix_master_cf" 2> /dev/null) ; then + if ! grep -iq -E "^policy-spf\s+" "$postfix_master_cf" 2> /dev/null ; then cat <> $postfix_master_cf policy-spf unix - n n - 0 spawn @@ -4175,7 +4175,7 @@ EOF # - Add transport definitions for only sending over IPv4/IPv6 # - - if ! $(grep -iq -E "^smtp-ipv4-only\s+" "$postfix_master_cf" 2> /dev/null) ; then + if ! grep -iq -E "^smtp-ipv4-only\s+" "$postfix_master_cf" 2> /dev/null ; then cat <> $postfix_master_cf smtp-ipv4-only unix - - n - - smtp @@ -4183,7 +4183,7 @@ smtp-ipv4-only unix - - n - - smtp EOF fi - if ! $(grep -iq -E "^smtp-ipv6-only\s+" "$postfix_master_cf" 2> /dev/null) ; then + if ! grep -iq -E "^smtp-ipv6-only\s+" "$postfix_master_cf" 2> /dev/null ; then cat <> $postfix_master_cf smtp-ipv6-only unix - - n - - smtp