This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[MODULE] Mail Quota Count
#1
[MODULE] Mail Quota Count
Mail Quota Count [Image: version-1.3.2_Stable-green.svg?style=flat-square] [Image: Sentora-1.0.0-blue.svg?style=flat-square] 
Counts Email Quota towards Web Quota, making it easier to manage Email accounts.

UPDATE: This is a Stable and Production Tested Version!
(See Changelog at the end of this post)


How to install?
Just add the Mach-hosting Sentora Repository and install:

Code:
zppy repo add zppy-repo.mach-hosting.com/repo
zppy update
zppy install mail-quota-count

Just add the Vanguardly Sentora Repository and install:
Code:
repo removed - see repo information above.
You can also download the .zpp package from the Mail Quota Count GitHub Repository, it is inside the packages directory.

If you want to Upgrade (you should Wink ) you can do it by using the following command:
Code:
zppy upgrade mail-quota-count


What does this Module do?
By default Sentora gives each mail box 200mb, this is not counted towards the global account Disk Quota.
Let's say you give a user 500mb of Disk Quota; he creates 5 mail boxes (each can use up to 200mb), if he uses all the space on each off the mail boxes he will be using 1000mb + 500mb of Disk Quota for his web directory.

In most cases this is NOT intended behavior.

Mail Quota Count scans the size of the vmail directory for each account and sums it to the current web directory size, updating the Disk Usage Quota on every Daemon Run.

Development
This was based on the Zpanel DiskUsage Calculation to include email disk usage article from kobmat.com.
I do really welcome any tips and help (please use the GitHub Repository)

[Image: blacktocat-16.png?raw=true] Contribute on GitHub 

Quote:Changelog

[b]v1.3.2 HOTFIX
- Fixed a HostData Path Typo on Windows (yup I did it again... Blush).


v1.3.1 HOTFIX
[/b]- Fixed a HostData Path Typo.
- Fixed Warnings on Installation/Upgrade of the Module (thank you cyber1995 for the report).

v1.3.0

- Implemented support for Windows Paths thanks to TGates (TGates71 @ GitHub) contribuitions (see GitHub Issues Forum Add-ons and Usage, MySupport Addon and Test of MySupport MOD.
- Now uses fs_director::GetDirectorySize() if its installed on a Windows Server (instead of du UNIX command).


v1.2.0
- Updated code to meet PSR-2 PHP Standards
- Cleaned and Optimized code to be more integrated with Sentora.
- Added 2 new hooks (onAfterCreateClient and onAfterDeleteClient),
  this should greatly improve usability.

- Tested on my own production server.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by: lino69 , Cantalupo


Messages In This Thread
[MODULE] Mail Quota Count - by apinto - 04-15-2015, 04:56 AM
RE: [MODULE] Mail Quota Count - by apinto - 04-26-2015, 03:28 AM
RE: [MODULE] Mail Quota Count - by cyber1995 - 05-02-2015, 09:14 AM
RE: [MODULE] Mail Quota Count - by apinto - 05-07-2015, 12:57 AM
RE: [MODULE] Mail Quota Count - by MarkDark - 05-07-2015, 07:14 PM
RE: [MODULE] Mail Quota Count - by apinto - 05-07-2015, 11:23 PM
RE: [MODULE] Mail Quota Count - by TGates - 05-08-2015, 12:17 AM
RE: [MODULE] Mail Quota Count - by apinto - 05-08-2015, 02:29 AM
RE: [MODULE] Mail Quota Count - by TGates - 05-09-2015, 02:03 AM
RE: [MODULE] Mail Quota Count - by apinto - 05-09-2015, 09:49 PM
RE: [MODULE] Mail Quota Count - by apinto - 05-09-2015, 09:59 PM
RE: [MODULE] Mail Quota Count - by TGates - 05-11-2015, 07:21 AM
RE: [MODULE] Mail Quota Count - by babarnazmi - 09-21-2015, 10:26 PM
RE: [MODULE] Mail Quota Count - by apinto - 09-22-2015, 12:05 AM
RE: [MODULE] Mail Quota Count - by babarnazmi - 09-22-2015, 12:27 AM
RE: [MODULE] Mail Quota Count - by Cantalupo - 06-19-2015, 11:23 AM
RE: [MODULE] Mail Quota Count - by MarkDark - 06-19-2015, 08:51 PM
RE: [MODULE] Mail Quota Count - by apinto - 06-19-2015, 11:56 PM
RE: [MODULE] Mail Quota Count - by MarkDark - 08-18-2015, 02:12 PM
RE: [MODULE] Mail Quota Count - by apinto - 08-18-2015, 06:21 PM
RE: [MODULE] Mail Quota Count - by MarkDark - 08-19-2015, 08:51 AM
RE: [MODULE] Mail Quota Count - by apinto - 09-22-2015, 09:44 PM
RE: [MODULE] Mail Quota Count - by gabi - 10-02-2015, 05:55 PM
RE: [MODULE] Mail Quota Count - by apinto - 10-02-2015, 06:53 PM
RE: [MODULE] Mail Quota Count - by gabi - 10-03-2015, 12:06 AM
RE: [MODULE] Mail Quota Count - by apinto - 10-03-2015, 07:19 AM
RE: [MODULE] Mail Quota Count - by gabi - 10-03-2015, 06:44 PM
RE: [MODULE] Mail Quota Count - by apinto - 10-03-2015, 07:42 PM
RE: [MODULE] Mail Quota Count - by rahul_pragma - 04-02-2016, 08:29 PM
RE: [MODULE] Mail Quota Count - by betatester3.0 - 09-04-2017, 09:06 PM
RE: [MODULE] Mail Quota Count - by liamgibbins - 12-13-2017, 06:16 AM
RE: [MODULE] Mail Quota Count - by nark - 11-10-2017, 09:32 AM
RE: [MODULE] Mail Quota Count - by TGates - 12-15-2017, 05:31 AM
RE: [MODULE] Mail Quota Count - by angelorocha - 12-20-2017, 03:07 AM
RE: [MODULE] Mail Quota Count - by TGates - 12-21-2017, 08:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[MODULE] phpMyAdmin-AU (Auto-Update) TGates 14 41 ,001 06-15-2021, 06:54 AM
Last Post: TGates
[MODULE] SenBrand - Basic Branding module for Sentora TGates 20 43 ,879 06-04-2021, 11:47 AM
Last Post: ccr1969
[MODULE] CoinCorner BitCoin Module Xversion 4 13 ,204 06-03-2021, 05:02 AM
Last Post: zHostingSolutions

Forum Jump:


Users browsing this thread: 1 Guest(s)