denyspam.sh
public shellscript v1 · immutable#!/bin/bash# add any excessive validrcptto spammer to hosts.denyspammers=`awk '/excessive/ {print $9}' /var/log/qmail/qmail-smtpd/current`for ip in $spammersdonet=`echo $ip | awk -F. '{print $1"."$2"."$3"."}'`if [ `grep -c $net /etc/hosts.deny` = 0 ] ; thenecho "ALL : $net" >> /etc/hosts.denyfidone