1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-06-15 03:30:36 +02:00

postfix.sh: add missing -E for extended regexes in smtpd_sender_restrictions ()

This commit is contained in:
Andreas Perhab
2023-04-18 11:08:19 +02:00
committed by GitHub
parent 3f22cbce01
commit 2f33f44f4a

@ -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 ]]