Posted in 05/10/2009 ¬ 12:15h.fabio
Qmail: routing all mails to a smarthost # echo “:smtp.qmail.com” > /var/qmail/control/smtproutes (or manually add “:smtp.qmail.com” line (without qutoes) to the file.) this command will set qmail that all your mails will be routed to smtp.qmail.com (will remove other existing lines, so be careful) Qmail: routing all mails for a specific domain to a smarthost [...]
Read the rest of this entry »
Posted in 30/09/2009 ¬ 02:04h.admin
# 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 »