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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED check mail quota over ssh

Discussion in 'E-mail Discussions' started by em.ci, Mar 13, 2017.

Tags:
  1. em.ci

    em.ci Well-Known Member

    Joined:
    Jun 15, 2015
    Messages:
    47
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Switzerland
    cPanel Access Level:
    Root Administrator
    Hi guys,

    Is it possible to get a list of all mail accounts which reaching the memory space limit soon with using SSH?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can browse to the "Notifications" tab in "WHM >> Tweak Settings" and configure the following options:

    Enable mailbox usage warnings
    Mailbox disk quota “warn” percentage
    Mailbox disk quota “critical” percentage
    Mailbox disk quota “full” percentage


    Then, run the following command:

    Code:
    /scripts/quotacheck
    Once you do this, simply review the /var/cpanel/quotawarned file to see which email accounts are over the configured warning threshold:

    Code:
    cat /var/cpanel/quotawarned
    Note this setting will send an email notification to the cPanel account holders if their email accounts are over the threshold.

    Thank you.
     
    SysSachin and em.ci like this.
  3. em.ci

    em.ci Well-Known Member

    Joined:
    Jun 15, 2015
    Messages:
    47
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Switzerland
    cPanel Access Level:
    Root Administrator
    Hi Michael

    Thank your very much. That worked perfectly.

    emci
     
    cPanelMichael likes this.
Loading...

Share This Page