Notify when close to size limit

rszkutak

Verified User
Joined
Dec 22, 2003
Messages
173
Location
Scottsdale, AZ & Clam Gulch, AK
OK here goes, I searched DA's forums and didn't find this question answered, or I could have just been smoking crack and not searched for the right thing.... here's my issue, and *wish*

I know thier has to be a way to send an e-mail to users who are approcahing their size limit on their mail box...

For example, assume my default size is 10Mb for each and all users ( or whatever even if i increase it for them on a one on one basis ).


If Jane has an e-mail box that is as follows:

Size: 7.35Mb
Limit: 10 Mb

Is their a way to "send her a little warning about her mailbox size" automatically to notify her that she is approaching her limit of 10Mb ?

I know I can do this in exchange, and do it 100 times a day administering my dozen's of exchange servers.... this is Linux land, Microsoft had to steal the idea from somewhere !!!

Thoughts ?


-rob
 
Absolutely...

In a bare linux installation you set both a hard limit and a soft limit, and when a user's files (all of them, not just mail) reach the soft limit, the user gets an email... when they hit the hard limit the user can't add anything.

But it doesn't work for DirectAdmin mailboxes because they're not linux users.

You could write a program that checks all mailboxes on the server and when the email usage has gotten to a certain percentage of it's hard limit, send a message.

You could schedule it with a cronjob.

If there's enough interest this could be something we'd be interested in creating as a commercial addon, but I don't know if there's any interest at all.

Jeff
 
Jeff,
That sounds entirely reasonable.... Can you throw me a bone as to what to look for on how to create the proper Cron Job for this ? I don't even know where to begin looking for something like this !


thanks,
rob
 
I could start by telling you it's not simple.

Because email accounts are not system users and nothing keeps track of them properly.

So first you'd have to determine where DA keeps track of mailbox sizes.

Then you'd have to write a script that would check each mailbox's size against the maximum size, and send you an email if the size used exceeds a certain percentage of the size allowed.

Jeff
 
Back
Top