Version: 1.0
Notify Mailbox approaching quota limit
To implement, simply download the zip file, unzip it and place the code inside your eventhandlers.vbs file in the onAcceptMessage Sub. Change the settings at top of script and make sure scripts are enabled in hmail admin settings / advanced / scripts. Reload scripts in admin panel and that's it.
N.B. The script assumes users are using authentication to send email. You must be using require authentication to send for the script to work against a user. If sending mail is not authenticating then script will ignore mail. No warning, no ban, and mail will continue as normal until hmail account limits kick in without warning.
The script will notify users when they reach a specified percentage of their mailbox space Quota. They will recieve a nag mail telling them to archive/remove some files from their mailserver user account every time they send a subsequent message until they do something about their space usage.
If they don't do this they will be banned from sending mail when they reach the ban percentage level setting of their quota. Ban remains in place until they archive/remove mails from their account.
The script has no effect on incoming mail (not authenticated) which contnues to arrive and be accepted by hMail until the hMail mailbox limit is reached. It's real benefit is that incoming email is not lost due to reaching hmail mailbox limit without a warning giving users time to do something about their mail or request a mailbox size increase.
There are several other scripts in forums which do similar or more advanced things. Some realtime, some batch, some using txt files to store data. This script is simpler in concept with less options, no bloat (less sophisticated). take your pick.
Good Luck
Mailbox Quota Limit Notify and later Block
Re: Mailbox Quota Limit Notify and later Block
Hi, I do not see the zip file. Can someone upload it again?
Thanks!
Thanks!
- jimimaseye
- Moderator
- Posts: 8917
- Joined: 2011-09-08 17:48
Re: Mailbox Quota Limit Notify and later Block
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829