Plesk, QMail, list mailboxes by size.

To display the top 25 mailboxes by size type the following in the terminal

cd /var/qmail/mailnames

du -hs --block-size=1024K */* | sort -nr | head -25

To get the same results emailed to yourself run the following in a script, add it to cron for scheduled emails.

cd /var/qmail/mailnames

du -hs --block-size=1024K */* | sort -nr | head -25 | mail -s 'Top 25 Mailboxes by Size' your@email.co.uk

Thanks to http://www.mikcx.com

Print Friendly, PDF & Email

More Like This


Categories


CentOS Linux Plesk Web Hosting

Tags


  • Post a comment