mailcow/data/conf/postfix/whitelist_forwardinghosts.sh

12 lines
211 B
Bash
Raw Normal View History

2017-04-17 21:42:35 +08:00
#!/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