From 595e8d13204edbd83b192b5363a27e72ac33fc36 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 31 Jan 2023 00:10:17 +0200 Subject: [PATCH] fix update clients --- files/update_clients.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/update_clients.sh b/files/update_clients.sh index ecef04b..4ab9132 100644 --- a/files/update_clients.sh +++ b/files/update_clients.sh @@ -1,15 +1,15 @@ #!/bin/bash -declare clients=( hiljainen.susurrando.com www.susurrando.com oc.koti.site) +declare clients=( hiljainen.susurrando.com deu1.susurrando.com adpvm01.susurrando.com adpvm02.susurrando.com adpvm03.susurrando.com adpvm04.susurrando.com) rm /etc/postfix/allowed_clients touch /etc/postfix/allowed_clients chown postfix.postfix /etc/postfix/allowed_clients chmod o-rwx /etc/postfix/allowed_clients -postmap /etc/postfix/allowed_clients for client in "${clients[@]}" do client_ip=$(dig "${client}" | grep -v '^;' |grep "\sA\s" | awk '{print($5)}') echo "${client_ip} OK" >> /etc/postfix/allowed_clients done +postmap /etc/postfix/allowed_clients