find /home/virtual/site*/fst/var/spool/mail/ -size +100000k > /root/biginboxes.txt
Code to get the details from the above txt file
for i in `cat biginboxes.txt`
do
SITE=`grep $i biginboxes.txt | cut -d’/’ -f4`
SITEN=`sitelookup -s $SITE | cut -d’,’ -f1`
USERN=`grep $i biginboxes.txt |cut -d’/’ -f9`
DSKS=`du -sh $i |cut -f1`
echo “$SITEN -> user: $USERN = $DSKS”
done
Advertisement