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