Added custom vmailbox configuration

the content of /tmp/postfix/vmailbox is appended to the generated /etc/postfix/vmailbox
This commit is contained in:
Rémi Auguste 2016-04-11 18:25:45 +02:00
parent eb52dc66f9
commit 5f9e0acd9d
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ if [ -f /tmp/vhost.tmp ]; then
cat /tmp/vhost.tmp | sort | uniq > /etc/postfix/vhost && rm /tmp/vhost.tmp
fi
# manual mailbox configuration (reference http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox)
cat /tmp/postfix/vmailbox >> /etc/postfix/vmailbox
echo "Postfix configurations"
touch /etc/postfix/vmailbox && postmap /etc/postfix/vmailbox
touch /etc/postfix/virtual && postmap /etc/postfix/virtual