Quota checks for mailbox disk quota and usage question

Gino Viroli

Well-Known Member
Oct 2, 2007
91
10
58
cPanel Access Level
Root Administrator
In order to run the process that checks mail quota and sends warnings I can call from Terminal this command:

/usr/local/cpanel/scripts/quotacheck

But if I don't call it, how many times per day/hour cPanel checks the user mail quota and sends a mail warning?

Let's suppose /var/cpanel/quotawarned is still empty

I need to know because I'm doing some tests, it seems it's not sending these type of warnings unless I call /usr/local/cpanel/scripts/quotacheck manually, even if in the Tweak Settings I have turned on "Enable mailbox usage warnings" and "Mailbox disk quota “critical” percentage" set to 90%

EDIT: in thread title there is a misspelling, it should be "checks", but I can't fix it.
 
Last edited:

rpvw

Well-Known Member
Jul 18, 2013
1,101
460
113
UK
cPanel Access Level
Root Administrator
I believe that quotacheck is called once a day as part of the upcp routine
 
  • Like
Reactions: Gino Viroli

Gino Viroli

Well-Known Member
Oct 2, 2007
91
10
58
cPanel Access Level
Root Administrator
I believe that quotacheck is called once a day as part of the upcp routine
Ouch, if that is true, it's quite annoying, because I set cPanel to update itself once a month, hence my upcp runs once a month. o_O

It seems you are right, I looked into /usr/local/cpanel/scripts/upcp ...
...and it calls /usr/local/cpanel/scripts/maintenance script...
...that calls /usr/local/cpanel/scripts/quotacheck

:mad:
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
Hello,


cPanel by default does not do a "monthly" update it performs an automated maintenance update nightly. quotacheck is run as part of the maintenance script. I would absolutely not suggest manipulating the upcp cron, if you don't want cPanel to update regularly I'd modify the setting in WHM>>Server Configuration>>Update preferences though an automated "monthly" update is not something that is available.
 
  • Like
Reactions: Gino Viroli

Gino Viroli

Well-Known Member
Oct 2, 2007
91
10
58
cPanel Access Level
Root Administrator
Hello,


cPanel by default does not do a "monthly" update it performs an automated maintenance update nightly. quotacheck is run as part of the maintenance script. I would absolutely not suggest manipulating the upcp cron, if you don't want cPanel to update regularly I'd modify the setting in WHM>>Server Configuration>>Update preferences though an automated "monthly" update is not something that is available.
I have got it now. :-p
 
  • Like
Reactions: cPanelLauren

Gino Viroli

Well-Known Member
Oct 2, 2007
91
10
58
cPanel Access Level
Root Administrator
I turned on the upcp cron job, now it runs every night.

Is there a way to get upcp cron stop sending the Cron Daemon mail message every night?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
Hello,


You can set that cron job to send to /dev/null so you stop getting the notification just append the following to the end like following:

Code:
> /dev/null 2>&1