commit | b382b1029eb22053bfe89c2042f46369d29cf821 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jan 02 15:32:21 2021 +0100 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jan 02 15:32:21 2021 +0100 |
tree | 02aa76cf6a8fc0031d564c4f8cf82cd20aa2067a | |
parent | 6e270560206c2f99e57faf1c6de62268037aeb62 [diff] [blame] |
git subrepo clone https://github.com/mailcow/mailcow-dockerized.git mailcow/src/mailcow-dockerized subrepo: subdir: "mailcow/src/mailcow-dockerized" merged: "a832becb" upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git" branch: "master" commit: "a832becb" git-subrepo: version: "0.4.3" origin: "???" commit: "???" Change-Id: If5be2d621a211e164c9b6577adaa7884449f16b5
diff --git a/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/whitelist_forwardinghosts.sh b/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/whitelist_forwardinghosts.sh new file mode 100755 index 0000000..4ad5ab3 --- /dev/null +++ b/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/whitelist_forwardinghosts.sh
@@ -0,0 +1,12 @@ +#!/bin/bash + +while read QUERY; do + QUERY=($QUERY) + if [ "${QUERY[0]}" != "get" ]; then + echo "500 dunno" + continue + fi + result=$(curl -s http://nginx:8081/forwardinghosts.php?host=${QUERY[1]}) + logger -t whitelist_forwardinghosts -p mail.info "Look up ${QUERY[1]} on whitelist, result $result" + echo ${result} +done