From 2f33f44f4a0f877c0115824aa7369f4d0a453b8f Mon Sep 17 00:00:00 2001 From: Andreas Perhab Date: Tue, 18 Apr 2023 11:08:19 +0200 Subject: [PATCH] postfix.sh: add missing -E for extended regexes in smtpd_sender_restrictions (#3272) --- target/scripts/startup/setup.d/postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/scripts/startup/setup.d/postfix.sh b/target/scripts/startup/setup.d/postfix.sh index bd9feaa6..eb830760 100644 --- a/target/scripts/startup/setup.d/postfix.sh +++ b/target/scripts/startup/setup.d/postfix.sh @@ -77,7 +77,7 @@ function _setup_postfix_late __postfix__log 'trace' 'Configuring user access' if [[ -f /tmp/docker-mailserver/postfix-send-access.cf ]] then - sed -i 's|(smtpd_sender_restrictions =)|\1 check_sender_access texthash:/tmp/docker-mailserver/postfix-send-access.cf,|' /etc/postfix/main.cf + sed -i -E 's|(smtpd_sender_restrictions =)|\1 check_sender_access texthash:/tmp/docker-mailserver/postfix-send-access.cf,|' /etc/postfix/main.cf fi if [[ -f /tmp/docker-mailserver/postfix-receive-access.cf ]]