Mailbox Quota Limit Notify and later Block

This section contains scripts that hMailServer has contributed with. hMailServer 5 is needed to use these.
Post Reply
percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Mailbox Quota Limit Notify and later Block

Post by percepts » 2013-08-04 21:09

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

User avatar
Maquibo
New user
New user
Posts: 3
Joined: 2010-01-22 13:30
Location: SPAIN
Contact:

Re: Mailbox Quota Limit Notify and later Block

Post by Maquibo » 2017-07-06 10:04

Hi, I do not see the zip file. Can someone upload it again?

Thanks!

User avatar
jimimaseye
Moderator
Moderator
Posts: 9955
Joined: 2011-09-08 17:48

Re: Mailbox Quota Limit Notify and later Block

Post by jimimaseye » 2017-07-06 11:40

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

wHiteHands
New user
New user
Posts: 3
Joined: 2023-11-14 16:48

Re: Mailbox Quota Limit Notify and later Block

Post by wHiteHands » 2023-11-14 16:53

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?

palinka
Senior user
Senior user
Posts: 4352
Joined: 2017-09-12 17:57

Re: Mailbox Quota Limit Notify and later Block

Post by palinka » 2023-11-14 17:39

wHiteHands wrote:
2023-11-14 16:53
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?
What is it you want to do if you don't want to limit any of these things?

wHiteHands
New user
New user
Posts: 3
Joined: 2023-11-14 16:48

Re: Mailbox Quota Limit Notify and later Block

Post by wHiteHands » 2023-11-15 10:25

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?

User avatar
jimimaseye
Moderator
Moderator
Posts: 9955
Joined: 2011-09-08 17:48

Re: Mailbox Quota Limit Notify and later Block

Post by jimimaseye » 2023-11-15 11:30

wHiteHands wrote:
2023-11-15 10:25
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?
Did you continue to read that thread? If so you would have seen: viewtopic.php?p=136559#p136559

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

wHiteHands
New user
New user
Posts: 3
Joined: 2023-11-14 16:48

Re: Mailbox Quota Limit Notify and later Block

Post by wHiteHands » 2023-11-15 16:03

Thanks everyone. I'll try it on the weekend.

Post Reply