Mohammedz.com

For Linux and Shell scripting.

Check mail usage of all domains on Ensim server

Leave a comment


Hi,

To find the mail usage of all domains in the ensim server :

du -hcl –max-depth=1 /home/virtual/admin*/var/spool/ | grep [k,M,G]

OR

for i in /home/virtual/site*;do echo -n “`basename $i` “;cd $i/fst/var/spool/;du -h| grep [k,M,G]; done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s