mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Modified warning in virtual and vmailbox
This commit is contained in:
parent
5abadead33
commit
b057ad2170
|
@ -5,7 +5,8 @@ echo "Regenerating postfix 'vmailbox' and 'virtual' for given users"
|
|||
# rm /etc/postfix/virtual.db
|
||||
# rm /etc/postfix/vmailbox
|
||||
# rm /etc/postfix/vmailbox.db
|
||||
echo "# WARNING: this file is auto-generated. Do not modify locally" > /etc/postfix/vmailbox
|
||||
echo "# WARNING: this file is auto-generated. Modify accounts.cf in postfix directory on host" > /etc/postfix/vmailbox
|
||||
echo "# WARNING: this file is auto-generated. Modify redirects.cf in postfix directory on host" > /etc/postfix/virtual
|
||||
# Creating users
|
||||
while IFS=$'|' read -r login pass
|
||||
do
|
||||
|
@ -23,17 +24,9 @@ do
|
|||
mkdir -p /var/mail/${domain}
|
||||
maildirmake /var/mail/${domain}/${user}
|
||||
echo ${domain} >> /tmp/vhost.tmp
|
||||
|
||||
# Aliases
|
||||
arr=$(echo $aliases | tr "," "\n")
|
||||
for alias in $arr
|
||||
do
|
||||
echo "$alias@$domain redirects to $login"
|
||||
echo "$alias@$domain\t$login" >> /etc/postfix/virtual
|
||||
done
|
||||
|
||||
done < /tmp/postfix/accounts.cf
|
||||
makeuserdb
|
||||
|
||||
#creating virtuals
|
||||
while IFS=$'|' read -r from to
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue