mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
allow accounts which do not start with a-z (#568)
This commit is contained in:
parent
912cb5676b
commit
4536113a30
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
recipient_delimiter = ~
|
||||
max_idle = 600s
|
||||
# this is a comment
|
||||
# this is also a comment
|
||||
readme_directory = /tmp
|
||||
|
||||
|
|
Loading…
Reference in a new issue