Forwarding hosts in postscreen
This commit is contained in:
11
data/conf/postfix/whitelist_forwardinghosts.sh
Executable file
11
data/conf/postfix/whitelist_forwardinghosts.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
read QUERY
|
||||
QUERY=($QUERY)
|
||||
if [ "${QUERY[0]}" != "get" ]; then
|
||||
echo "500 dunno"
|
||||
continue
|
||||
fi
|
||||
echo $(curl -s http://172.22.1.251:8081/forwardinghosts.php?host=${QUERY[1]})
|
||||
done
|
Reference in New Issue
Block a user