From 3e4e9edb8c49f5d1eed7bcdae2fd948b203898b8 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 15 Oct 2019 15:39:43 +0200 Subject: [PATCH] install_postfix_advanced.sh, install_postfwd.sh: some minor changes to default 'postfwd.cf' configuration file. --- install_postfix_advanced.sh | 4 +++- install_postfwd.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index bcf826f..c3f296a 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -902,7 +902,9 @@ if [[ ! -f "/etc/postfix/postfwd.cf" ]]; then # Blacklist sender adresses &&BLOCK_SENDER { - sender==file:/etc/postfix/postfwd.bl-sender + # =~ + # using '=~' allows also matching entries for domains (i.e. @acieu.co.uk) + sender=~file:/etc/postfix/postfwd.bl-sender } # Inbound emails only diff --git a/install_postfwd.sh b/install_postfwd.sh index f4f0fe2..053685a 100755 --- a/install_postfwd.sh +++ b/install_postfwd.sh @@ -168,7 +168,9 @@ if [[ ! -f "/etc/postfix/postfwd.cf" ]]; then # Blacklist sender adresses &&BLOCK_SENDER { - sender==file:/etc/postfix/postfwd.bl-sender + # =~ + # using '=~' allows also matching entries for domains (i.e. @acieu.co.uk) + sender=~file:/etc/postfix/postfwd.bl-sender } # Inbound emails only