Added Spamcheck, adspam and donaspam-scritps for wh20

This commit is contained in:
Patrick Eigner-Pausz
2026-04-14 14:04:35 +02:00
parent 55529624c2
commit a1046bda79
8 changed files with 248 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#! /usr/bin/env bash
# Spamcheck für MS365 error-codes und Spamhaus rejections
# Maintainer: peignerpausz
printf '=== %s Spamcheck === \n' "$(hostname)"
for a in S3150 S775 S7771 S7772 S7773 S7774 S7775 S7776 S7777 S7778 S7779 Spamhaus
do
count=$(sudo grep -c "\($a\)" /var/log/maillog 2>/dev/null)
if [ "$count" -gt 0 ]; then
printf "|=> Anzahl %s: %s\n" "$a" "$count"
fi
done
printf '=== %s Spamcheck done === \n' "$(hostname)"