
Long has it been that the horde of people have been crying for CPANEL to put in a dam email option TO REMOVE the dredded "UNLIMITED" option from the page... well i got sick and tired of looking at that word and decided to remove it MANUALLY...
Barring some trail and error for 2 days i finally managed to remove it BUT also including limiting the MB to 2000MB regardless...
Cpanel i mean REALLY now looking at it, its so dam simple "making sure you have root access, if you running an account outside of root access then sorry cant help you unless you point the person whom is hosting your email to this POST"
I only did this for their new skin "Paper Lantern" i'm sure you can find the same line in the other skins but i couldn't be bothered because i only use "Paper Lantern - awesome skin btw not sure why you would use any other..."
** DISCLAIMER - you do this at your own risk, you use this at your own risk, i take no responsibility what so ever if you mess up by using this method... you have been warned...
1. you must have root access to the server or hosting, hosting the cpanel/whm
2. this edit applies to "Paper Lantern" only it MIGHT work for others
3. you are going to edit root files of cpanel MAKE BACKUPS before attempting any edits of said files
4. Mailbox Quota dont exceed 2048MB
5. THIS IS ONLY FOR ENGLISH other languages should work but youll have to figure that out.
** LETS START **
1. navigate to /usr/local/cpanel/base/frontend/paper_lantern/mail/pops/views
2. find the file changeQuotaModule.ptt
3. look for :
email-max-quota="{{maxQuota}}"
change to :email-max-quota="2000"
can be what ever min/max amount you want just keep it below 20484. look for :
<li validation-item field-name="quota_number_input_{{$index}}" validation-name="emailMaxQuota" id="val-quota-max-quota">
[%- LANG.mailbox_maxquota -%]
change to :[%- LANG.mailbox_maxquota -%]
<li validation-item field-name="quota_number_input_{{$index}}" validation-name="emailMaxQuota" id="val-quota-max-quota">
Quotas cannot exceed xxxxMB
where xxxx is, is the amount you've chosen to limit tooQuotas cannot exceed xxxxMB
5. look for :
<label class="form-inline">
<input type="radio" id="quota_unlimited_{{$index}}" name="quotaType" value="unlimited" ng-model="quotaChange.quotaType"/>
<span> [% LANG.unlimited %]</span>
</label>
and delete all of the above, this will remove the "UNLIMITED" option from the page "WOOOHOOO!!!"<input type="radio" id="quota_unlimited_{{$index}}" name="quotaType" value="unlimited" ng-model="quotaChange.quotaType"/>
<span> [% LANG.unlimited %]</span>
</label>
6. save and exit, reload page and check the magic of no unlimited... try setting a higher than 2000mb limit and youll see some more magic
Cpanel so simple, i mean really... for the people that created this awesome product not to inlcuding something like this is beyond me...