{"id":9406,"date":"2022-04-21T07:04:20","date_gmt":"2022-04-21T07:04:20","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9406"},"modified":"2022-04-21T07:04:20","modified_gmt":"2022-04-21T07:04:20","slug":"cpanel-shows-reporting-wrong-mails-directory-size","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/","title":{"rendered":"Cpanel Shows Reporting wrong mails\/directory size"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">In this tutorial, we will describe how to recover disk space by root or using cPanel.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">cPanel frequently reports an inaccurate value for the \/mail\/ directory in the cPanel-&gt;Disk Usage interface. <\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">The value returned by the shell in our test case is 310MB:<\/span><\/li>\n<\/ul>\n<div class=\"command-sh\">\n<pre>root@web [\/home\/mmtest]# du -sh mail\r\n<span style=\"font-weight: 400;\">310M\u00a0 \u00a0 mail<\/span>\r\n<span style=\"font-weight: 400;\">root@web [\/home\/mmtest]#<\/span><\/pre>\n<\/div>\n<h3><strong>Using Root Directory<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">However, cPanel reports a value of 562.89MB, This is due to the dovecot server failing to update the disc use accurately.<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Run the commands below to rectify the problem:<\/span><\/li>\n<\/ul>\n<div class=\"command-sh\">\n<pre># \/scripts\/generate_maildirsize --confirm --allaccounts --verbose $username<\/pre>\n<\/div>\n<div class=\"command-sh\">\n<pre>root@web [\/home\/mmtest]# \/scripts\/generate_maildirsize --confirm --allaccounts --verbose mmtest\r\nRebuilding the maildirsize files for: mmtest\r\nRebuilding the maildirsize files for: arsam@mmtest133.com\r\nChecking user mmtest\r\nCalculating diskusage and diskcount from reading files\r\nWriting \/home\/mmtest\/mail\/maildirsize for user merches\r\nChecking user arsam@mmtest133.com\r\nCalculating diskusage and diskcount from reading files\r\nWriting \/home\/mmtest\/mail\/mmtest133.com\/john\/maildirsize for user john\r\nroot@web [\/home\/mmtest]#<\/pre>\n<\/div>\n<p class=\"text-success\">After that, cPanel will report disc utilization correctly.<\/p>\n<h3><b>Using cPanel to check Disk Space<\/b><\/h3>\n<ul>\n<li><span style=\"font-weight: 400;\">Log into your cPanel account:<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Under the heading &#8220;Files,&#8221; select &#8220;Disk Usage&#8221;:<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-9407\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png\" alt=\"\" width=\"494\" height=\"191\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-1024x397.png 1024w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-768x298.png 768w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png 1037w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">By clicking the &#8220;&gt;&#8221; on the left of the folder name at the bottom of the page, you can expand the folders:<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_4-6.png\"><img decoding=\"async\" class=\"alignnone wp-image-9408\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_4-6-300x250.png\" alt=\"\" width=\"451\" height=\"376\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_4-6-300x250.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_4-6.png 720w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">This will provide more information about each folder as well as the amount of disc space used.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will describe how to recover disk space by root or using cPanel. cPanel frequently reports an inaccurate value for the \/mail\/ directory in the cPanel-&gt;Disk Usage interface. The value returned by the shell in our test case is 310MB: root@web [\/home\/mmtest]# du -sh mail 310M\u00a0 \u00a0 mail root@web [\/home\/mmtest]# Using Root [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-9406","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, we will describe how to recover disk space by root or using cPanel. cPanel frequently reports an inaccurate value for the \/mail\/ directory in the cPanel-&gt;Disk Usage interface. The value returned by the shell in our test case is 310MB: root@web [\/home\/mmtest]# du -sh mail 310M\u00a0 \u00a0 mail root@web [\/home\/mmtest]# Using Root [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"Cpanel Shows Reporting wrong mails\/directory size\",\"datePublished\":\"2022-04-21T07:04:20+00:00\",\"dateModified\":\"2022-04-21T07:04:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\"},\"wordCount\":149,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\",\"name\":\"Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png\",\"datePublished\":\"2022-04-21T07:04:20+00:00\",\"dateModified\":\"2022-04-21T07:04:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png\",\"width\":1037,\"height\":402},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cpanel Shows Reporting wrong mails\/directory size\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/","twitter_card":"summary_large_image","twitter_title":"Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk","twitter_description":"In this tutorial, we will describe how to recover disk space by root or using cPanel. cPanel frequently reports an inaccurate value for the \/mail\/ directory in the cPanel-&gt;Disk Usage interface. The value returned by the shell in our test case is 310MB: root@web [\/home\/mmtest]# du -sh mail 310M\u00a0 \u00a0 mail root@web [\/home\/mmtest]# Using Root [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png","twitter_misc":{"Written by":"samama","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"Cpanel Shows Reporting wrong mails\/directory size","datePublished":"2022-04-21T07:04:20+00:00","dateModified":"2022-04-21T07:04:20+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/"},"wordCount":149,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/","url":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/","name":"Cpanel Shows Reporting wrong mails\/directory size - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9-300x116.png","datePublished":"2022-04-21T07:04:20+00:00","dateModified":"2022-04-21T07:04:20+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-9.png","width":1037,"height":402},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/cpanel-shows-reporting-wrong-mails-directory-size\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Cpanel Shows Reporting wrong mails\/directory size"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9406"}],"version-history":[{"count":3,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9406\/revisions"}],"predecessor-version":[{"id":9438,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9406\/revisions\/9438"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}