Count ip blocked with bl in mail.log
Count ip blocked with bl in mail.log for i in spamhaus.org sorbs.net abuseat.org njabl.org ; do echo “$i” && /bin/grep “$i” /var/log/mail.log.1| awk ‘{print $12;}’|wc -l ; done ;
Read the rest of this entry »Count ip blocked with bl in mail.log for i in spamhaus.org sorbs.net abuseat.org njabl.org ; do echo “$i” && /bin/grep “$i” /var/log/mail.log.1| awk ‘{print $12;}’|wc -l ; done ;
Read the rest of this entry »# cat /usr/local/sbin/count_mail_per_domain.sh #!/bin/bash logfile=$2 domain=$3 case “$1″ in -t) cat $logfile |grep “to remote” | awk ‘{print $14}’ | awk -F@ ‘{ field = $2 }; {print “domain: ” field }’ | sort |uniq -c |sort -nr | awk -v totale=0 ‘{totale=totale+$1; print ;} END {print “Totale giorno domini: “totale;}’ ;; -su) cat $logfile [...]
Read the rest of this entry »