DuMailCheck is a simple perl script that checks on the mailspool of all users and prints out a report based on what it finds.
This program was written in about 10-15 minutes for wrlwnd after he said he wanted to be able to check on the total disk space used by each users mailspool. I greatly modified a script that was featured in the book "Unix Power Tools" that gave summary information about each users homedir disk useage.
The way this script works is it grabs all the usernames from /etc/passwd and does a du on each users mailspool (default maildir is /var/spool/mail/) and then does a few more little tasks to generate any security warnings and finally, prints out a formatted report of what
Feel Free to download the Source Code
DuMailCheck is provide Free of Charge to whoever wants to user it. I provide no warranty or guarantee that it will work.
If you have any questions or comments, please send them to J-Dog