Hello there,
We're looking to free up some space on our system with many accounts. We've found a handful of accounts with mailboxes above 10GB.
We've recently enabled compression, and we understand that it only affects new emails. We'd like to try and save space with the existing email.
After some research it appears that maildir is not only the default, but the best option for ease-in-restoration for individual mails messages and for avoiding potential corruption/data loss. And since no one is complaining about performance, we don't see mdbox as worth the risk for its higher efficiency.
Throughout our testing we've found, on at least two mailboxes, that conversion saves significant space.
For example, a maildir mailbox at 19GB is 13GB after conversion, then converting back to maildir, it remains at 13GB.
For reference we are testing 'mailbox size' using the `du -h` command inside the /home/<user>/mail/<domain>/ folder
I am unsure if it is compressing the mail through the conversion process or if we are losing data with the conversions. I know that running diff against two folders (a maildir folder before the conversion and a maildir folder after conversion to mdbox and back to maildir) show many differences.
Can anyone suggest an approach that allows us to understand where the 6GB is going? - is it truly space savings without data loss (either through compression or some other side effect of going from: maildir > mdbox > maidlir such as inode usage) ?
Can anyone provide any advanced knowledge or experience using mail conversion that would either clear up what is going on, or help steer us one way or the other from moving down a path of converting mailboxes back and forth to free up space?
Obviously hand-checking each and every mail message file is not possible, and after the conversion to mdbox and then again to maildir, some messages seem binary when `cat`-ed that were pure text before.
Any forum threads I found here that suggest the conversion process compresses existing mail have shown replies that seem to rebuke / disprove that claim.
Our highest priority is to be sure we do not lose any mail data for any clients. Since this seems to be two-way conversion that seems to "save space" on the surface we'd like to understand the risks of using it.
Any thoughts or suggestions are appreciated.
Thanks for your time in reviewing this ask.
-Jay
We're looking to free up some space on our system with many accounts. We've found a handful of accounts with mailboxes above 10GB.
We've recently enabled compression, and we understand that it only affects new emails. We'd like to try and save space with the existing email.
After some research it appears that maildir is not only the default, but the best option for ease-in-restoration for individual mails messages and for avoiding potential corruption/data loss. And since no one is complaining about performance, we don't see mdbox as worth the risk for its higher efficiency.
Throughout our testing we've found, on at least two mailboxes, that conversion saves significant space.
For example, a maildir mailbox at 19GB is 13GB after conversion, then converting back to maildir, it remains at 13GB.
For reference we are testing 'mailbox size' using the `du -h` command inside the /home/<user>/mail/<domain>/ folder
I am unsure if it is compressing the mail through the conversion process or if we are losing data with the conversions. I know that running diff against two folders (a maildir folder before the conversion and a maildir folder after conversion to mdbox and back to maildir) show many differences.
Can anyone suggest an approach that allows us to understand where the 6GB is going? - is it truly space savings without data loss (either through compression or some other side effect of going from: maildir > mdbox > maidlir such as inode usage) ?
Can anyone provide any advanced knowledge or experience using mail conversion that would either clear up what is going on, or help steer us one way or the other from moving down a path of converting mailboxes back and forth to free up space?
Obviously hand-checking each and every mail message file is not possible, and after the conversion to mdbox and then again to maildir, some messages seem binary when `cat`-ed that were pure text before.
Any forum threads I found here that suggest the conversion process compresses existing mail have shown replies that seem to rebuke / disprove that claim.
Our highest priority is to be sure we do not lose any mail data for any clients. Since this seems to be two-way conversion that seems to "save space" on the surface we'd like to understand the risks of using it.
Any thoughts or suggestions are appreciated.
Thanks for your time in reviewing this ask.
-Jay