Fixed #159: postfix-accounts.cf now generated with script + fixed line endings using sed in start-mailserver.sh

This commit is contained in:
Thomas VIAL 2016-04-25 16:00:39 +02:00
parent f8268f641a
commit 9415c099cc
No known key found for this signature in database
GPG key ID: 0394CEE552FAFEFC
6 changed files with 19 additions and 5 deletions

View file

@ -9,6 +9,8 @@ die () {
# Users
#
if [ -f /tmp/docker-mailserver/postfix-accounts.cf ]; then
echo "Checking file line endings"
sed -i 's/\r//g' /tmp/docker-mailserver/postfix-accounts.cf
echo "Regenerating postfix 'vmailbox' and 'virtual' for given users"
echo "# WARNING: this file is auto-generated. Modify config/postfix-accounts.cf to edit user list." > /etc/postfix/vmailbox