Use PCRE for alias regular expressions instead of the basic type (#751)

This commit is contained in:
Damian Moore 2017-12-07 18:44:45 +00:00 committed by Johan Smits
parent d62ea049e6
commit 01a41e9d93

View file

@ -686,8 +686,8 @@ function _setup_postfix_aliases() {
notify 'inf' "Adding regexp alias file postfix-regexp.cf" notify 'inf' "Adding regexp alias file postfix-regexp.cf"
cp -f /tmp/docker-mailserver/postfix-regexp.cf /etc/postfix/regexp cp -f /tmp/docker-mailserver/postfix-regexp.cf /etc/postfix/regexp
sed -i -e '/^virtual_alias_maps/{ sed -i -e '/^virtual_alias_maps/{
s/ regexp:.*// s/ pcre:.*//
s/$/ regexp:\/etc\/postfix\/regexp/ s/$/ pcre:\/etc\/postfix\/regexp/
}' /etc/postfix/main.cf }' /etc/postfix/main.cf
fi fi
} }