dkim-report/reports.sh

13 lines
319 B
Bash
Raw Normal View History

2024-02-19 19:34:22 +01:00
WORKDIR=$(pwd)
2024-04-15 16:35:06 +02:00
PORT=9090
2024-02-19 19:34:22 +01:00
mkdir -p "$WORKDIR"/xml
mkdir -p "$WORKDIR"/html
echo "converting reports to html"
2024-03-26 07:41:21 +01:00
dmarc-report-converter --version
2024-02-19 19:34:22 +01:00
dmarc-report-converter
echo "open filewall port"
sudo iptables -I INPUT -p tcp --dport $PORT -j ACCEPT
echo "serving reports"
cd "$WORKDIR/html" && python3 -m http.server $PORT