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.

Warn USER when mailbox nearly full

Discussion in 'E-mail Discussions' started by 8p-design, Jun 8, 2010.

  1. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hi,
    Is there a way for cpanel or exim to send a notification to the mail USER (not account main contact) that their inbox is 80% full or something?

    ... so they can clean up their inbox themselves....

    Because it is getting a lot of management to follow up those.

    thanks!
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    In the WHM under Main >> Server Configuration >> Tweak Settings, check that the following have values set:

    Also, make sure the option to send the warnings is enabled (further down on the same screen):

     
  3. devendradb

    devendradb Member

    Joined:
    May 8, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mumbai, India
    Mailbox usage

    Hi,
    Use folowing php code

    PHP:
    $un "name@yourdomain.com";
    $pw="password";
    $mbox imap_open("{mail.yourdomain.com:143/notls}",$un,$pwOP_HALFOPEN
         or die(
    "can't connect: " imap_last_error()); 
      
    $quota imap_get_quotaroot($mbox"INBOX"); 
    if (
    is_array($quota)) { 
       
    $storage $quota['STORAGE']; 
       
    $su=$storage['usage'];
       
    $sl=$storage['limit']/1024;
    echo 
    "<b>You are using $su KB of $sl MB</b>";
     
  4. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    thanks garrettp, but this will send an email to the cpanel main contact. I want the email to be sent preemptively to the USER@domain.com
    How can this be achieved?
     
  5. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    thanks, but we don't have user names and password for all accounts on the server.

    We wish to install this at the root and email each user that are over 80% of their quota or more. that way the user receives a notification in their mailbox and they can act. We could run this via CRON everyday or whatever.

    Now the email is sent to the account contact, which brings the task to him to contact the end user and check their setting... this is getting counter productive.

    Anyone has a script to check the quota and usage of ALL mailboxes on a server? thanks!
     
  6. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Mailbox usage warnings are sent to the user who's email box is nearing capacity. Disk space warnings are sent to the cPanel contact (and optionally the admin too).
     
Loading...

Share This Page