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: 9955
- 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
-
- New user
- Posts: 3
- Joined: 2023-11-14 16:48
Re: Mailbox Quota Limit Notify and later Block
Hi there! I also need this script, but i don't need any Limits Outbound Mails by User, Domain or Server Average. I searching Mailbox quota limit notify script exactly. Can anybody help me with version 1.0?
Re: Mailbox Quota Limit Notify and later Block
What is it you want to do if you don't want to limit any of these things?wHiteHands wrote: ↑2023-11-14 16:53Hi there! I also need this script, but i don't need any Limits Outbound Mails by User, Domain or Server Average. I searching Mailbox quota limit notify script exactly. Can anybody help me with version 1.0?
-
- New user
- Posts: 3
- Joined: 2023-11-14 16:48
Re: Mailbox Quota Limit Notify and later Block
Simply inform the user that their mailbox is close to its quota limit. Or it's already full.
Like in this post. viewtopic.php?p=114244#p114244
Will this script work on 5.6.8-B2574?
Like in this post. viewtopic.php?p=114244#p114244
Will this script work on 5.6.8-B2574?
- jimimaseye
- Moderator
- Posts: 9955
- Joined: 2011-09-08 17:48
Re: Mailbox Quota Limit Notify and later Block
Did you continue to read that thread? If so you would have seen: viewtopic.php?p=136559#p136559wHiteHands wrote: ↑2023-11-15 10:25Simply inform the user that their mailbox is close to its quota limit. Or it's already full.
Like in this post. viewtopic.php?p=114244#p114244
Will this script work on 5.6.8-B2574?
That is running on v5 of hMS (which will work on yours).
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
-
- New user
- Posts: 3
- Joined: 2023-11-14 16:48
Re: Mailbox Quota Limit Notify and later Block
Thanks everyone. I'll try it on the weekend.