The update_existing_mail_quotas_for_account Script

Valid for versions 100 through the latest version



Last modified: September 8, 2021


The /usr/local/cpanel/scripts/update_existing_mail_quotas_for_account script will update the quota for all existing email accounts for a given user or for all users on the system

Run the script

To run this script on the command line, use the following format:

/usr/local/cpanel/scripts/update_existing_mail_quotas_for_account [options]


Use the following options with this script:

Option Description Example
--all All emails created by the user of the cPanel account. –all 1000
--user The name of the cPanel account. –user example 1000
--quota <quota_in_megabytes> The new quota size for email accounts, measured in megabytes. –quota 2048
--help Display the script’s help documentation. --help

The <quota_in_megabytes> value must be a positive integer. Use 0 for unlimited or maximum allowed quota (based on MAX_EMAILACCT_QUOTA for account).

Additional Documentation