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