[MODULE] Mail Quota Count
04-15-2015, 04:56 AM
(This post was last modified: 10-03-2015, 07:21 AM by apinto.
Edit Reason: Added zppy update
)
Mail Quota Count
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:
Just add the Vanguardly Sentora Repository and install:
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 ) you can do it by using the following command:
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)
Contribute on GitHub
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.
If you want to Upgrade (you should ) 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)
Contribute on GitHub
Quote:Changelog
[b]v1.3.2 HOTFIX
- Fixed a HostData Path Typo on Windows (yup I did it again... ).
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
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com