Imail version 6.X lacks the ability to issue warnings to users approaching
the mailbox size limit. This perl script scans the registry for each domain
and checks each user's mailbox size against MaxSize entered for the user in
the registry. If the user has 0 entered as MaxSize then the domains MaxSize
entry is used. If the mailbox is within 10% of the limit it emails a caution
to the user and logs it. If the user's mailbox exceeds the limit it only
logs it. The resulting log file is then emailed to the postmaster account.
Sizes are reported in bytes.
To run the script every 24 hours, schedule with the command "AT 2:00
/interactive /every:Su,M,T,W,Th,F,S C:\BIN\LIMIT.PL"
I would appreciate any comments or suggestions. For example should the user
continue to be warned once the mailbox limit has been passed. Maybe even
warn until the user is 10% over the limit. It currently starts warning the
user at 10% of the limit and continues until the limit is reached. I don't
want the number of warnings mailed to a user to be infinite.
It should work without any configuration settings other than to either
manually run it or schedule it. Would someone give it a shot and help me
test it?
It seems to work fine, but use at your own risk!
Works with Activestate's Perl available at http://www.activestate.com/
<<LIMIT.PL>>
LIMIT.PL