From 5f9e0acd9ddb2c76551030ec83e648c124d5a6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Auguste?= Date: Mon, 11 Apr 2016 18:25:45 +0200 Subject: [PATCH] Added custom vmailbox configuration the content of /tmp/postfix/vmailbox is appended to the generated /etc/postfix/vmailbox --- start-mailserver.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start-mailserver.sh b/start-mailserver.sh index eb9bb7e4..61be65d3 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -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