Detecting server email abuse for qmail service
April 30, 2013
hosting technology, Technical
Hosting Expert
0
A very simple script that you can use to detect email overuse when qmail is being used for email delivery. #!/bin/bash num=`/var/qmail/bin/qmail-qstat | grep -P -o “[0-9]+” | head -2 | awk ‘{ sum += $1 } END { print sum }’` if [ $num -ge $1 ] then mail -s “Email overuse on `hostname`” […]