From 545922fefad35cf5b15a8f478b1acc661878d689 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Wed, 13 Apr 2016 21:43:15 +0200 Subject: [PATCH] Fixed paths --- target/start-mailserver.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 67e0ea86..e7012ea9 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -5,6 +5,12 @@ die () { exit 1 } +# +# Preparing +# + +mkdir -p /tmp/docker-mailserver/tmp + # # Users # @@ -51,8 +57,8 @@ if [ -f /tmp/docker-mailserver/postfix-accounts.cf ]; then touch "/var/mail/${domain}/${user}/.Sent/maildirfolder" fi - echo ${domain} >> /tmp/vhost.tmp - done < /tmp/postfix/accounts.cf + echo ${domain} >> /tmp/docker-mailserver/tmp/vhost.tmp + done < /tmp/docker-mailserver/postfix-accounts.cf else echo "==> Warning: 'config/docker-mailserver/postfix-accounts.cf' is not provided. No mail account created." fi