1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-26 02:06:17 +02:00

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

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

View File

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