|
|
@ -8,7 +8,7 @@ setKazVars |
|
|
|
cd $(dirname $0) |
|
|
|
. "${DOCKERS_ENV}" |
|
|
|
|
|
|
|
[ "${mode}" == "local" ] || exit |
|
|
|
#[ "${mode}" == "local" ] || exit |
|
|
|
|
|
|
|
checkDockerRunning "${smtpServName}" "Postfix" || exit |
|
|
|
|
|
|
@ -21,8 +21,9 @@ printKazMsg "\n *** Premier lancement de Postfix" |
|
|
|
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 |
|
|
|
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} > /home/filter/config/domainedepot |
|
|
|
touch /home/filter/config/file_domaines_non_depollues.txt |
|
|
|
EOF |
|
|
|
|
|
|
|
chmod +x /var/lib/docker/volumes/postfix_mailConfig/_data/user-patches.sh |
|
|
|