Use PCRE for alias regular expressions instead of the basic type

This commit is contained in:
Damian Moore 2017-10-21 02:25:07 +01:00
parent 835939d856
commit f10ed7ba33
1 changed files with 2 additions and 2 deletions

View File

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