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: 8363
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

Post Reply