mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Improvement on aliases management
This commit is contained in:
parent
3dcceaef0c
commit
f2e52c3292
|
@ -26,6 +26,7 @@ makeuserdb
|
|||
|
||||
echo "Regenerating 'virtual' for given aliases"
|
||||
echo $docker_mail_aliases | sed -r 's/\[|\]|\x27|//g' | sed -r 's/, /\n/g' > /tmp/docker_mail_aliases
|
||||
echo "" > /etc/postfix/virtual
|
||||
while IFS=$'|' read -r login aliases
|
||||
do
|
||||
arr=$(echo $aliases | tr "," "\n")
|
||||
|
@ -37,6 +38,7 @@ do
|
|||
echo "$alias@$domain\t$login" >> /etc/postfix/virtual
|
||||
done
|
||||
done < /tmp/docker_mail_aliases
|
||||
rm /tmp/docker_mail_aliases
|
||||
|
||||
echo "Postfix configurations"
|
||||
postmap /etc/postfix/vmailbox
|
||||
|
|
Loading…
Reference in a new issue