public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/Dockerfiles/postfix/whitelist_forwardinghosts.sh
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
#!/bin/bash
3
while read QUERY; do
4
QUERY=($QUERY)
5
if [ "${QUERY[0]}" != "get" ]; then
6
echo "500 dunno"
7
continue
8
fi
9
result=$(curl -s http://nginx:8081/forwardinghosts.php?host=${QUERY[1]})
10
logger -t whitelist_forwardinghosts -p mail.info "Look up ${QUERY[1]} on whitelist, result $result"
11
echo ${result}
12
done