Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
cpanel:quota-notification-emails-not-sent [2009-10-02 18:33:23]
ndcadmin Approved
cpanel:quota-notification-emails-not-sent [2009-10-02 19:06:08]
ndcadmin Approved
Line 1: Line 1:
 +=====Why does cPanel not send quota notification emails?=====
 +
 The first thing to check if these are not being sent is if the appropriate options are enabled. In **Main >> Server Configuration >> Tweak Settings** there is a section for Notifications in which you will want to enable the various options as to your liking, e.g.: The first thing to check if these are not being sent is if the appropriate options are enabled. In **Main >> Server Configuration >> Tweak Settings** there is a section for Notifications in which you will want to enable the various options as to your liking, e.g.:
  
Line 5: Line 7:
 If these options are already enabled, then there is another reason why the emails are not being sent. cPanel's quota notification mechanism which dispatches emails for accounts that are nearing or at their disk quota is tied to the nightly update mechanism. If you have disabled cPanel's nightly updates in **Main >> Server Configuration >> Update Config**, (any option with Manual Updates Only), these emails will not be sent. You will need to either enable updates, or create a cronjob to run cPanel's quota check script. This is detailed below, assuming you are logged into your server via SSH as root: If these options are already enabled, then there is another reason why the emails are not being sent. cPanel's quota notification mechanism which dispatches emails for accounts that are nearing or at their disk quota is tied to the nightly update mechanism. If you have disabled cPanel's nightly updates in **Main >> Server Configuration >> Update Config**, (any option with Manual Updates Only), these emails will not be sent. You will need to either enable updates, or create a cronjob to run cPanel's quota check script. This is detailed below, assuming you are logged into your server via SSH as root:
  
-<code># crontab -e</code>+<code console># crontab -e</code>
  
 On a new, blank line in this file (hit the Insert key to enter text entry mode if using vim), enter the following: On a new, blank line in this file (hit the Insert key to enter text entry mode if using vim), enter the following:
  
-<code>**0 3 * * * /scripts/quotacheck > /dev/null 2>&1**</code>+<code console>0 3 * * * /scripts/quotacheck > /dev/null 2>&1</code>
  
 This will have the quota check script run nightly at 3:00AM local time. Save the file and quit the editor (:wq in vim)and your new crontab will be installed. This will have the quota check script run nightly at 3:00AM local time. Save the file and quit the editor (:wq in vim)and your new crontab will be installed.
  
 {{tag>quotas notifications}} {{tag>quotas notifications}}