|
|
@ -18,10 +18,13 @@ 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 |
|
|
|
|
|
|
|
cat > /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh << EOF |
|
|
|
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 |
|
|
|
awk -i inplace 'BEGIN {cp=0} /127.0.0.1:10025/ {cp=1} /content_filter=/ {if (cp) gsub("content_filter=.*", "content_filter=filter:dummy"); print $0; cp=0; next} {print}' /etc/postfix/master.cf |
|
|
|
echo ${domain} > /tmp/docker-mailserver/domainedepot |
|
|
|
EOF |
|
|
|
|
|
|
|
chmod +x /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh |
|
|
|
fi |
|
|
|
|
|
|
|