Add documentation and service scripts for DMARC reporting.
This commit is contained in:
14
DOC/DMARC-Report/daily-run.sh
Executable file
14
DOC/DMARC-Report/daily-run.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE="/var/lib/dmarc"
|
||||
TODAY_DIR="$BASE/reports/$(date -u +%Y/%m/%d)"
|
||||
OUTDIR="$BASE/exports"
|
||||
CSV="$OUTDIR/records.csv"
|
||||
LOGF="$BASE/logs/scan-$(date -u +%F).log"
|
||||
|
||||
mkdir -p "$OUTDIR"
|
||||
|
||||
if [[ -d "$TODAY_DIR" ]]; then
|
||||
/usr/local/bin/dmarc-scan.sh "$TODAY_DIR" --domain fluechtlingsrat-brandenburg.de --csv "$CSV" --append --top 25 --outdir "$OUTDIR" >> "$LOGF" 2>&1
|
||||
fi
|
||||
Reference in New Issue
Block a user