Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Quota checks for mailbox disk quota and usage question

Discussion in 'E-mail Discussion' started by Gino Viroli, Jan 27, 2019.

  1. Gino Viroli

    Gino Viroli Well-Known Member

    Joined:
    Oct 2, 2007
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    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.
     
    #1 Gino Viroli, Jan 27, 2019
    Last edited: Jan 27, 2019
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    442
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I believe that quotacheck is called once a day as part of the upcp routine
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Gino Viroli likes this.
  3. Gino Viroli

    Gino Viroli Well-Known Member

    Joined:
    Oct 2, 2007
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    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:
     
    #3 Gino Viroli, Jan 28, 2019
    Last edited: Jan 28, 2019
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,469
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Gino Viroli likes this.
  5. Gino Viroli

    Gino Viroli Well-Known Member

    Joined:
    Oct 2, 2007
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    I have got it now. :-p
     
    cPanelLauren likes this.
  6. Gino Viroli

    Gino Viroli Well-Known Member

    Joined:
    Oct 2, 2007
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    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?
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,469
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice