Submitted by helpmin on Sat, 12/10/2011 - 02:24
With Webmin-Postfix-readUserMail I can see
testuser (201.12 kB in 6)
6 is the number of folders, but there are no messages. Why does it show 201.12 kB?
Status:
Closed (works as designed)
Comments
Submitted by andreychek on Sat, 12/10/2011 - 07:57 Comment #1
Howdy -- well, what we could do is verify from the command line that there aren't any email messages in their account.
If you log into your server as root over SSH, can you browse to the home directory of "testuser", and then type:
find Maildir
That will then show you all the files and directories in the directory "Maildir", where all the email is stored.
You can ignore files that begin with the name "dovecot" -- but do you see any other files underneath that folder?
Submitted by helpmin on Sat, 12/10/2011 - 08:14 Comment #2
I run the following command:
find Maildir -type f -exec ls -la {} \;
Without all the dovecot files I only see
mailfolderdir
files. But they only contain 0 bytes.Submitted by andreychek on Sat, 12/10/2011 - 08:19 Comment #3
Okay. Next, can you test how much space the Maildir directory is taking? You can determine that with this command:
du -sh Maildir
Submitted by helpmin on Sat, 12/10/2011 - 08:27 Comment #4
368K
Submitted by JamieCameron on Sat, 12/10/2011 - 11:04 Comment #5
Do any of the folders have messages in them?
Submitted by helpmin on Sat, 12/10/2011 - 14:49 Comment #6
None of the folder have messages in them. They only contain maildirfolders or dovecot files. using the webmin interface to 'read mail' doesn't show any messages either.
Submitted by helpmin on Sat, 12/10/2011 - 18:07 Comment #7
Here is the output of the above find command:
Submitted by andreychek on Sat, 12/10/2011 - 18:07 Comment #8
Yeah, chances are the numbers you're seeing are just related to the Dovecot control files, there aren't any hidden emails or whatnot.
Also, directories themselves, even if empty, take up a small amount of space, so just having a few directories would add a small amount of space on top of the Dovecot control files.
Submitted by helpmin on Sat, 12/10/2011 - 19:37 Comment #9
Not sure, since the dovecot files are 368K, and if folders are also counted as space, why does VM show only 201K?
Submitted by helpmin on Mon, 12/19/2011 - 04:50 Comment #10
It is not a big deal, you can close this message. You have probably more interesting issues :-)
Submitted by JamieCameron on Mon, 12/19/2011 - 16:22 Comment #11
Ok, closing this then .. I wouldn't worry too much about a small discrepancy like that. Especially since the "size" of a file can vary depending on whether you count it in blocks or bytes, if it is a sparse file and so on..