KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:maildir-not-updating-and-cpanel-email-disk-usage-incorrect

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
control-panels:cpanel-whm:maildir-not-updating-and-cpanel-email-disk-usage-incorrect [2019/09/17 07:26]
Karson N.
control-panels:cpanel-whm:maildir-not-updating-and-cpanel-email-disk-usage-incorrect [2020/06/16 14:27] (current)
Karson N.
Line 1: Line 1:
 ====== Maildir is Not Updating and cPanel Email Account Disk Space Usage is Incorrect ====== ====== Maildir is Not Updating and cPanel Email Account Disk Space Usage is Incorrect ======
- 
 \\ \\
  
Line 6: Line 5:
  
 To test, log into SSH, and try to trigger the maildirsize file to be regenerated. To do this for the default email account, run the following: To test, log into SSH, and try to trigger the maildirsize file to be regenerated. To do this for the default email account, run the following:
 +<code>
   mv /home/cpaneluser/mail/maildirsize /home/cpaneluser/mail/maildirsize.bak   mv /home/cpaneluser/mail/maildirsize /home/cpaneluser/mail/maildirsize.bak
 +</code>
  
 To do this for any other non-default account, run this (substituting the account name 'emailaccount' for the account whose maildirsize file is being regenerated): To do this for any other non-default account, run this (substituting the account name 'emailaccount' for the account whose maildirsize file is being regenerated):
 +<code>
   mv /home/cpaneluser/mail/domain.com/emailaccount/maildirsize /home/cpaneluser/mail/domain.com/emailaccount/maildirsize.bak   mv /home/cpaneluser/mail/domain.com/emailaccount/maildirsize /home/cpaneluser/mail/domain.com/emailaccount/maildirsize.bak
 +</code>
  
 For example, you would run this command for support@myuniquedomain.tld owned by cPanel user myunique: For example, you would run this command for support@myuniquedomain.tld owned by cPanel user myunique:
 +<code>
   mv /home/myunique/mail/myuniquedomain.tld/support/maildirsize /home/myunique/mail/myuniquedomain.tld/support/maildirsize.bak   mv /home/myunique/mail/myuniquedomain.tld/support/maildirsize /home/myunique/mail/myuniquedomain.tld/support/maildirsize.bak
 +</code>
  
 Log back into cPanel and visit the Email Accounts section to determine whether the cached email account's disk space usage is shown, or if it is showing an updated calculation.  Log back into cPanel and visit the Email Accounts section to determine whether the cached email account's disk space usage is shown, or if it is showing an updated calculation. 
  
 If the cached information is still shown, you can run the following command to forcefully regenerate the maildir file: If the cached information is still shown, you can run the following command to forcefully regenerate the maildir file:
 +<code>
   /scripts/generate_maildirsize --confirm --allaccounts --verbose cpaneluser   /scripts/generate_maildirsize --confirm --allaccounts --verbose cpaneluser
 +</code>
  
 You should see output like the following: You should see output like the following:
  
-> Checking user emailaccount@domain.com +<code> 
-Calculating diskusage and diskcount from reading files +  Checking user emailaccount@domain.com 
-Writing /home/cpaneluser/mail/domain.com/emailaccount/maildirsize for user cpaneluser +  Calculating diskusage and diskcount from reading files 
- +  Writing /home/cpaneluser/mail/domain.com/emailaccount/maildirsize for user cpaneluser 
 +</code>
  
 You could try running the following command to recalculate this as well, which appears to the same command ran by the cPanel script noted above: You could try running the following command to recalculate this as well, which appears to the same command ran by the cPanel script noted above:
 +<code>
   /usr/bin/doveadm quota recalc -u emailaccount@domain.com   /usr/bin/doveadm quota recalc -u emailaccount@domain.com
 +</code>
  
 You should now be able to log into cPanel and have it show the correct disk space usage for the account(s).  You should now be able to log into cPanel and have it show the correct disk space usage for the account(s). 
  
control-panels/cpanel-whm/maildir-not-updating-and-cpanel-email-disk-usage-incorrect.1568723193.txt.gz · Last modified: 2019/09/17 07:26 by Karson N.