Added spamcheck to wh20

This commit is contained in:
Patrick Eigner-Pausz
2026-04-07 11:50:49 +02:00
parent 5ae6001157
commit e2c579e5d8
12 changed files with 2936 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# /bin/bash
# Spamcheck für MS365 error-codes und Spamhaus rejections
# Maintainer: peignerpausz
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)
printf "Anzahl %s: %s\n" "$a" "$count"
done