mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
fix sed of main.cf for regexp aliases, try #3
This commit is contained in:
parent
9ce94f442a
commit
7f398a6bbc
|
@ -82,7 +82,10 @@ if [ -f /tmp/docker-mailserver/postfix-regexp.cf ]; then
|
||||||
# Copying regexp alias file
|
# Copying regexp alias file
|
||||||
echo "Adding regexp alias file postfix-regexp.cf"
|
echo "Adding regexp alias file postfix-regexp.cf"
|
||||||
cp /tmp/docker-mailserver/postfix-regexp.cf /etc/postfix/regexp
|
cp /tmp/docker-mailserver/postfix-regexp.cf /etc/postfix/regexp
|
||||||
sed -i -e "/^virtual_alias_maps/a| regexp:/etc/postfix/regexp|" /etc/postfix/main.cf
|
sed -i -e '/^virtual_alias_maps/{
|
||||||
|
s/ regexp:.*//
|
||||||
|
s/$/ regexp:\/etc\/postfix\/regexp/
|
||||||
|
}' /etc/postfix/main.cf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DKIM
|
# DKIM
|
||||||
|
|
Loading…
Reference in a new issue