Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    37

    Question Warn USER when mailbox nearly full

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    In the WHM under Main >> Server Configuration >> Tweak Settings, check that the following have values set:

    Threshold percentage where a user's disk usage is considered to be in the "warn" state. (0 will disable this notification)

    Threshold percentage where a mailbox's disk usage is considered to be in the "critical" state. (0 will disable this notification)

    Threshold percentage where a mailbox's disk usage is considered to be in the "full" state. (0 will disable this notification)

    Threshold percentage where a mailbox's disk usage is considered to be in the "warn" state. (0 will disable this notification)
    Also, make sure the option to send the warnings is enabled (further down on the same screen):

    Mail Box Usage Warnings
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  3. #3
    Member
    Join Date
    May 2010
    Location
    Mumbai, India
    Posts
    17

    Default Mailbox usage

    Hi,
    Use folowing php code

    PHP Code:
    $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. #4
    Member
    Join Date
    Mar 2006
    Posts
    37

    Default

    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. #5
    Member
    Join Date
    Mar 2006
    Posts
    37

    Default

    Quote Originally Posted by devendradb View Post
    Hi, Use folowing php code
    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. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by 8p-design View Post
    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?
    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).
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

Similar Threads & Tags
Similar threads

  1. Warn USER when mailbox nearly full
    By 8p-design in forum Feature Requests for cPanel/WHM
    Replies: 4
    Last Post: 09-14-2010, 01:50 PM
  2. Mailbox Size Warning (warn)?
    By Kimber in forum New User Questions
    Replies: 3
    Last Post: 01-02-2007, 07:37 PM
  3. mailbox full
    By hikaro in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-03-2006, 08:20 AM
  4. How to get MailBox [warn] or Mailbox [critical]
    By kerosin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-20-2003, 03:28 PM
  5. MailBox [warn]
    By anton in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-27-2003, 09:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube