Add vhost when using specific destinations

This commit is contained in:
kbeaugrand 2016-12-31 19:25:47 +01:00
parent 6df52796bb
commit 765f26a620
1 changed files with 8 additions and 0 deletions

View File

@ -540,6 +540,14 @@ function _setup_postfix_mydestination(){
notify 'task' 'Setting up Postfix My Destination'
postconf -e "mydestination=$POSTFIX_MYDESTINATION"
notify 'task' "Setting up Postfix vhost"
IFS=', ' eval 'vhosts=($POSTFIX_MYDESTINATION)'
for i in "${vhosts[@]}"
do
echo $i >> /etc/postfix/vhost
done
}
function _setup_dkim() {