From 7072f4ccbab31819d40c07af19943c0ff8d30240 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 23 Dec 2023 15:32:55 +0200 Subject: [PATCH] Remove update clients --- files/update_clients.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 files/update_clients.sh diff --git a/files/update_clients.sh b/files/update_clients.sh deleted file mode 100644 index 36f3e0c..0000000 --- a/files/update_clients.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -euo pipefail -declare clients=( hiljainen.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 -chmod ug+rw /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