This commit is contained in:
Zehir 2016-11-27 06:39:10 +00:00 committed by GitHub
commit df45c61956
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,7 @@ if [ -f /tmp/docker-mailserver/postfix-virtual.cf ]; then
cp -f /tmp/docker-mailserver/postfix-virtual.cf /etc/postfix/virtual
while read from to
do
([[ "$from" =~ ^#.*$ ]] || [ -z "$from" ] ) && continue
# Setting variables for better readability
uname=$(echo ${from} | cut -d @ -f1)
domain=$(echo ${from} | cut -d @ -f2)
@ -351,6 +352,7 @@ esac
#
if [ -f /tmp/docker-mailserver/postfix-main.cf ]; then
while read line; do
([[ "$line" =~ ^#.*$ ]] || [ -z "$line" ] ) && continue
postconf -e "$line"
done < /tmp/docker-mailserver/postfix-main.cf
echo "Loaded 'config/postfix-main.cf'"