This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************************************************************/ | |
// USECASE: | |
// All my mailboxes are set up as unlimited because I want all mailboxes to share the available domian space. | |
// Problem -> Used space from unlimited mailboxes will not be calculated into domain usage so I need to monitor (with alert email) this myself and inform my customers if they hit their limit. | |
// With unlimited mailboxes it could be that the vmail storage runs full so I will monitor this too. | |
// Run this script as often as you want (e.g. once a day). | |
// Add --nomail parameter if you do not want to send E-Mail and just get the console output. (Just shows domain above treshold) | |
// CONFIG: |