You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-08 23:06:49 +02:00
Use PCRE for alias regular expressions instead of the basic type (#751)
This commit is contained in:
committed by
Johan Smits
parent
d62ea049e6
commit
01a41e9d93
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user