cPanel 11 - How do I change the default email quota?

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
The old cPanel (bluelagoon) defaulted the email account quota to 10MB, which was too small.
The new cPanel (3x) defaults a new email account quota to 250MB, which is too large.

How, can I change the default that comes up for this in v11 (3x)?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
The old cPanel (bluelagoon) defaulted the email account quota to 10MB, which was too small.
The new cPanel (3x) defaults a new email account quota to 250MB, which is too large.

How, can I change the default that comes up for this in v11 (3x)?
At this time, it appears this default is theme-dependent. That's why X (on which the deprecated Bluelagoon theme is based) has 10 MB vs. X3's 250 MB default.

There is already a feature request in to customize this functionality that you may want to vote for:

http://bugzilla.cpanel.net/show_bug.cgi?id=1956

Note, according to the entry, you can modify the theme in /usr/local/cpanel/frontend/x3/ to customize this in the meantime.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
...according to the entry, you can modify the theme in /usr/local/cpanel/frontend/x3/ to customize this in the meantime.
I get no such directory at ---> /usr/local/cpanel/frontend/x3/

Okay, looks like it is here ---> /usr/local/cpanel/base/frontend/x3 and there are 104 files and directories in this particular location. Any idea as to which one I could change for this? I do grep 250 * and nothing comes up.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Nevermind I found it.

For anyone interested, the file is here:

/usr/local/cpanel/base/frontend/x3/mail/addpop.html


and also possibly here:


/usr/local/cpanel/base/frontend/x3/mail/popsinclude.html
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I get no such directory at ---> /usr/local/cpanel/frontend/x3/

Okay, looks like it is here ---> /usr/local/cpanel/base/frontend/x3 and there are 104 files and directories in this particular location. Any idea as to which one I could change for this? I do grep 250 * and nothing comes up.
You are correct, sorry I didn't catch that. Updated the bugzilla entry accordingly so others know in the future.
 

eric4

Member
Oct 26, 2004
15
0
151
David,

Do you plan to add a default email account quota setting in WHM?

Editing this manually every few days/weeks is getting old.

Kind regards,
Eric
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
David,

Do you plan to add a default email account quota setting in WHM?

Editing this manually every few days/weeks is getting old.

Kind regards,
Eric
You shouldn't need to do that if you have copied the theme into a different directory and assigned users to use that theme instead.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Can you point us to the step-by-step on this?

We use the x3 theme, and the only way around this that I could determine (in order to reset the giant 250MB email box default), was to make an initial edit and then to chattr +i both the addpop.html and popsinclude.html files.

But why not just include an option to reset the email box default using the Tweak Settings link in WHM? I can't image this would be any kind of a technical challenge for you guys?

Are you aware that some heavily used email clients, like Outlook, tend to choke and die with hundreds of MBs of email to retrieve?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Can you point us to the step-by-step on this?

We use the x3 theme, and the only way around this that I could determine (in order to reset the giant 250MB email box default), was to make an initial edit and then to chattr +i both the addpop.html and popsinclude.html files.

But why not just include an option to reset the email box default using the Tweak Settings link in WHM? I can't image this would be any kind of a technical challenge for you guys?

Are you aware that some heavily used email clients, like Outlook, tend to choke and die with hundreds of MBs of email to retrieve?
I'd advise against chattr +i as that is generally ineffective at preventing file updates by /scripts/upcp.

What you should do is copy /usr/local/cpanel/base/frontend/x3 to something like /usr/local/cpanel/base/frontend/my_x3. Perform your modifications to the my_x3 theme and assign all users to use that theme.

To do that, go to WHM -> Multiple Account Functions -> Modify/Upgrade Multiple Accounts. Halfway down that page on the right, you will see a search box. Delete the contents of the text box then click "Select Matching Users" - this will select all users.

At the bottom of the page, for Theme, select my_x3. You can safely modify my_x3 without worrying about updates. Note, enhancements to x3 will not automatically propagate to your custom theme.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
I'd advise against chattr +i as that is generally ineffective at preventing file updates by /scripts/upcp.
.... Note, enhancements to x3 will not automatically propagate to your custom theme.
This is exactly what I'm concerned with when it comes to using an entire custom theme.

Thanks for the step-by-step, very much appreciated. But in you're opinion what are the odds of cPanel.net including this very logical (and much needed) option sometime in the near future?
 

eric4

Member
Oct 26, 2004
15
0
151
This is exactly what I'm concerned with when it comes to using an entire custom theme.

Thanks for the step-by-step, very much appreciated. But in you're opinion what are the odds of cPanel.net including this very logical (and much needed) option sometime in the near future?
Yes, default mailbox quota in WHM Tweak Settings is much needed.

Kind regards,
Eric4
 

caldwell

Member
Sep 10, 2008
8
0
51
cPanel Access Level
Root Administrator
This is a MAJOR option that is missing

I concur with the other writers. This has been a stock feature of Qmail/Vpopmail server setups for years. It's well worth the time spent on adding this in. When will it be added?
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Don't forget to vote for the bug (see above) if you want this done.
Yeah but this is a 4 year old bugzilla. So obviously cPanel.net is not interested in correcting this one.

Also, with this most recent cPanel upgrade, it apparently does no good to edit the files we were editing before, and then locking them off from any further system updates, which was apparently our only recourse here (unless we manually edit these files on all servers virtually every single day).

Come on guys! This one is getting downright ridiculous!

We need a way to set up the default for the email account size in cPanel. When the default is 250MB this INVITES accounts that get absolutely log-jammed over time with huge amounts of email data.

Why does cpanel.net continue to avoid this ever-so-important issue?
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Yeah but this is a 4 year old bugzilla. So obviously cPanel.net is not interested in correcting this one.

Also, with this most recent cPanel upgrade, it apparently does no good to edit the files we were editing before, and then locking them off from any further system updates, which was apparently our only recourse here (unless we manually edit these files on all servers virtually every single day).

Come on guys! This one is getting downright ridiculous!

We need a way to set up the default for the email account size in cPanel. When the default is 250MB this INVITES accounts that get absolutely log-jammed over time with huge amounts of email data.

Why does cpanel.net continue to avoid this ever-so-important issue?

Okay, for anyone interested in this - Here is what is apparently the only solution that works:

Search for 250 and change it to 25 in this file:

/usr/local/cpanel/base/frontend/x3/mail/pops.html

Then lock the file to prevent cPanel.net from reverting this back to 250:

chattr +i /usr/local/cpanel/base/frontend/x3/mail/pops.html

If locking the pops.html file causes other problems, just make out a trouble ticket to cpanel.net. Perhaps this will help them to decide to finally correct this issue, who knows!?!?
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Thanks Sawbuck, but I don't really understand your post.

In any case, this appears to be one of those incredibly easy things that cPanel.net could fix, but for years they refuse to do something that could make life a little easier for many of us out here who have bought multiple server licenses, etc. Like all the type-os in that (now defunct) BlueLagoon interface that they did not want to correct, which nevertheless caused confusion among our hosted members.

Remember this from the cPanel Backups tool in BlueLagoon? ---> "Backup Destination: remove FTP Server (Passive mode transfer)" That one alone caused approximately 200 support tickets here until we finally switched from BL to x2.

And by the way, does anyone know why the heck cPanel.net insists on keeping many of the entry fields in WHM so dang small? Like for example fields within SSL/TLS ---> "Generate a SSL Certificate and Signing Request". Just due to the ever-so-short entry fields, we have mistakenly entered incomplete domains and what have you. And there are many, many, many other examples of this throughout the WHM interface. It's like a leftover from the days when everyone used CRTs that were 640 pixels wide!

Sorry, I don't mean to stray off-topic. As good as the cPanel.net system is, there continue to be these glaring quality control oversights that would probably take all of two hours to repair (if even that), but they just continue on for years and years and years. Anyone know what is exactly up with this one?
 

eric4

Member
Oct 26, 2004
15
0
151
cPanel email quota hard-coded 250 MB

Problem: cPanel x3 POP3 email quota is hard-coded to 250 MB

Solution: Manually edit the 250 quota in …

/usr/local/cpanel/base/frontend/x3/mail/

- addpop.html
- pop.html
- popsinclude.html

Unfortunately, the quota gets over written with most cPanel updates.

Please vote Bugzilla Bug#1956 to resolve this longstanding issue.
Bug 1956 - Default Mail Account Quota per Package

cPanel 11.25.0-R42399
WHM 11.25.0 - X 3.9
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Yeah, well I have done this, and this is close to a FIVE YEAR OLD bugzilla. So you got some other idea?