allow accounts which do not start with a-z (#568)

This commit is contained in:
mplx 2017-04-07 22:28:19 +02:00 committed by Thomas VIAL
parent 912cb5676b
commit 4536113a30
2 changed files with 5 additions and 3 deletions

View file

@ -463,7 +463,8 @@ function _setup_dovecot_local_user() {
# Creating users
# 'pass' is encrypted
grep "^[a-z]" /tmp/docker-mailserver/postfix-accounts.cf | while IFS=$'|' read login pass
# comments and empty lines are ignored
grep -v "^\s*$\|^\s*\#" /tmp/docker-mailserver/postfix-accounts.cf | while IFS=$'|' read login pass
do
# Setting variables for better readability
user=$(echo ${login} | cut -d @ -f1)
@ -805,7 +806,8 @@ function _setup_postfix_override_configuration() {
if [ -f /tmp/docker-mailserver/postfix-main.cf ]; then
while read line; do
# line should start with a letter (avoid comments and new lines)
# all valid postfix options start with a lower case letter
# http://www.postfix.org/postconf.5.html
if [[ "$line" =~ ^[a-z] ]]; then
postconf -e "$line"
fi

View file

@ -1,5 +1,5 @@
recipient_delimiter = ~
max_idle = 600s
# this is a comment
# this is also a comment
readme_directory = /tmp