|
|
@ -8,16 +8,12 @@ setKazVars |
|
|
|
cd $(dirname $0) |
|
|
|
. "${DOCKERS_ENV}" |
|
|
|
|
|
|
|
#[ "${mode}" == "local" ] || exit |
|
|
|
|
|
|
|
checkDockerRunning "${smtpServName}" "Postfix" || exit |
|
|
|
|
|
|
|
SETUP_MAIL="docker exec -ti mailServ setup" |
|
|
|
|
|
|
|
printKazMsg "\n *** Premier lancement de Postfix" |
|
|
|
|
|
|
|
# echo "virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-groups.cf, texthash:/etc/postfix/virtual" >> config/postfix-main.cf |
|
|
|
|
|
|
|
if [ ! -s /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh ]; then |
|
|
|
cat > /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh << EOF |
|
|
|
#!/bin/bash |
|
|
@ -29,3 +25,8 @@ EOF |
|
|
|
chmod +x /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "${mode}" == "local" ] || exit |
|
|
|
|
|
|
|
# echo "virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-groups.cf, texthash:/etc/postfix/virtual" >> config/postfix-main.cf |
|
|
|
|
|
|
|
|
|
|
|