Improves spamcheck and added quickchecks for inname and adino-Server

This commit is contained in:
Patrick Eigner-Pausz
2026-04-13 13:43:49 +02:00
parent 58ac0bf1b0
commit 8c12861db5
3 changed files with 25 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
#! /usr/bin/env bash
# Automatisierter Spamcheck für MS365 error-codes und Spamhaus rejections auf Adino-Server
# Maintainer: peignerpausz
printf '=== Todays Spamcheck on %s=== \n \n' "$(date)"
for a in 244 251 252 268 272
do ssh srv$a.adino.at -- bash -lc '~/bin/spamcheck'
done
+8
View File
@@ -0,0 +1,8 @@
#! /usr/bin/env bash
# Automatisierter Spamcheck für MS365 error-codes und Spamhaus rejections auf inname-Server
# Maintainer: peignerpausz
printf '=== Todays Spamcheck on %s=== \n \n' "$(date)"
for a in {20..30}
do ssh ws$a.inname.net -- bash -lc '~/bin/spamcheck'
done
+9 -4
View File
@@ -1,8 +1,13 @@
# /bin/bash
#! /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)
printf "Anzahl %s: %s\n" "$a" "$count"
done
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)"