Plesk Mail reciept

Posted by alex almazan Mon, 14 Apr 2008 13:48:29 GMT

This command syntax evaluates the Plesk maillogs and gives an account of the domains recieveing the most mail

cat /usr/local/psa/var/log/maillog | grep -o 'to=.*@.*' | sed 's/to=.*@//' | sort | uniq -c | sort -rn | head