1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-05-05 15:22:23 +00:00
Files
mailcow-dockerized/data/conf/postfix/whitelist_forwardinghosts.sh
2017-04-17 15:51:50 +02:00

12 lines
211 B
Bash
Executable File

#!/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