Remove update clients
This commit is contained in:
parent
0926281cc5
commit
7072f4ccba
1 changed files with 0 additions and 16 deletions
|
@ -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
|
|
Loading…
Reference in a new issue