Skip to main content

Disabling Unlimited Quota "root access required"

Comments

9 comments

  • cPanelMichael
    Hello, Thank you for sharing your workaround. Note the feature request for what you are seeking is found at: Ability to disable 'unlimited' email quotas Thank you.
    0
  • gavcom
    *bUMp* AND *Update* Just fair warning if cpanel does any updates it seems to always update all the paper_latern files there by overwriting the changes... No problem just repeat steps above and youll be back to normal again, suppose you need to keep track of cpanel/whm updates then
    0
  • LBJ
    *bUMp* AND *Update* Just fair warning if cpanel does any updates it seems to always update all the paper_latern files there by overwriting the changes... No problem just repeat steps above and youll be back to normal again, suppose you need to keep track of cpanel/whm updates then

    G'day gavcom, We do much same thing, but we set the max quota based on the user's hosting plan/package so different users have different max quota limits. We also install hooks on addpop/editquota. It gives us a lot of flexibility with our billing plans. If you first derive your own theme from the standard paper_lantern instead of changing paper_lantern directly, your changes won't be overwritten on cPanel updates. You still need to do a compare of the file changes on each update, and rebuild your own theme from the new paper_lantern base (we have quite a few extra modifications), but that usually only takes a few minutes unless there has been a major redesign. There's a feature request for plan-related max quotas somewhere aging away, but although it's fairly simple code changes that are required, it never seems to be added in. It's disappointing, and as you write, so simple, especially if you're adding it in from the development platform as the cPanel coders would be. Best regards, LBJ
    0
  • gavcom
    If you first derive your own theme from the standard paper_lantern instead of changing paper_lantern directly, your changes won't be overwritten on cPanel updates.

    Ye already on that road and testing, never really dived into their code pages/themes, I just got tired of clients leaving the unlimited option on and forgetting about the box while spam builds up. Just recently removed boxes full of spam totalling near 20gig, crazy... and yes before you ask running CSF in "hard" mode else im sure that would have been 200gig worth of spam... LOL
    We do much same thing, but we set the max quota based on the user's hosting plan/package so different users have different max quota limits. We also install hooks on addpop/editquota. It gives us a lot of flexibility with our billing plans.

    What code did you use to get this right was it part of the {{maxquote}} or some other code peice... ?
    There's a feature request for plan-related max quotas somewhere aging away, but although it's fairly simple code changes that are required, it never seems to be added in.

    Yes that been what YEARS now, looking at the code and thinking to my self how can they not just add a tick to HIDE it, it would honestly be so SIMPLE for them... beyond words, keeping the max quota aside, a simple tick... sheesh...
    0
  • LBJ
    Ye already on that road and testing, never really dived into their code pages/themes, I just got tired of clients leaving the unlimited option on and forgetting about the box while spam builds up. Just recently removed boxes full of spam totalling near 20gig, crazy... and yes before you ask running CSF in "hard" mode else im sure that would have been 200gig worth of spam... LOL What code did you use to get this right was it part of the {{maxquote}} or some other code peice... ? Yes that been what YEARS now, looking at the code and thinking to my self how can they not just add a tick to HIDE it, it would honestly be so SIMPLE for them... beyond words, keeping the max quota aside, a simple tick... sheesh...

    G'day gavcom, Take a look at... Template::Tutorial::Web ...and... Guide to Template Toolkit - API Calls from Template Toolkit - Software Development Kit - cPanel Documentation Use the template language to call the API to retrieve the hosting package for the user. Then limit the quota based on the plan settings you have in place. We also use hooks on on both addpop and editquota. Also, in addition to changeQuotaModule.ptt you (possibly more importantly) need to make similar mods to addEmailAccount.ptt/js/min.js Best regards, LBJ
    0
  • cPanelMichael
    Hello, I did want to note the following options are available under the "Mail" tab in "WHM >> Tweak Settings": Default user-defined quota value for new email accounts Default quota option for new email accounts While this doesn't prevent a cPanel user from using "unlimited" as a quota value for email accounts, it does allow you to set a default email quota that appears in the UI during the email creation process. Thank you.
    0
  • LBJ
    Hello, I did want to note the following options are available under the "Mail" tab in "WHM >> Tweak Settings": Default user-defined quota value for new email accounts Default quota option for new email accounts While this doesn't prevent a cPanel user from using "unlimited" as a quota value for email accounts, it does allow you to set a default email quota that appears in the UI during the email creation process. Thank you.

    G'day cPanelMichael, Thank you, but that really doesn't come near to what we needed and had to code for ourselves. We needed the ability to set a maximum quota size for mail accounts based on the account plan. This seemed to be a very reasonable extension of how we could already set a maximum number of email accounts, a maximum number of FTP accounts, a disk space quota, a data quota, and a limit on just about anything else associated with any specific hosting plan. It's a very simple thing to code, and would be truly trivial for cPanel developers to build into the code base. We modified the theme to do most of the work, but we also put hooks in place in case clients disable JavaScript or find other clever ways to post data. The end result is that we can be much more granular in our hosting plans. That makes it far easier for staff to solve clients' growth requirements with an easy upsell, and that drives profit growth. It's really an oddly missing feature of cPanel. Best regards, LBJ
    0
  • gavcom
    No need for code changes they have F I N A L L Y made it possible for us to do it from with in CPANEL, all hail the coders they finally woke up... Thanks guys/girls/devs for finally making it possible
    • v70.0.41
    0
  • cPanelMichael
    Hello @gavcom, Thank you for updating this thread. Here's the full link to information about this feature in the cPanel & WHM version 70 release notes: 70 Release Notes - Version 70 Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.