Ability to compress existing email
Open Discussion
As a web hosting provider and system administrator, I would like the Compress Messages option in WHM >> Mailserver Configuration expanded to include additional functionality that compresses all existing messages stored on the server in order to maximize disk space savings.
--------------------------------------------------------------------
The Compress Messages option in WHM >> Mailserver Configuration enables compression for recently created and delivered messages. I would like to see this option expanded to cover all existing messages stored on the server.
Forums thread: https://forums.cpanel.net/threads/mailbox-compression-and-maildir-mdbox-conversion.623391
As a workaround, you could convert from maildir to mdbox and back once compression is on.
As a workaround, you could convert from maildir to mdbox and back once compression is on.
Yes, I read that some places also. But that is alot of work if you have hundreds of servers.
Would be much easier to run a script that does compress all old emails on the whole server:
/scripts/compressmail :-)
Yes, I read that some places also. But that is alot of work if you have hundreds of servers.
Would be much easier to run a script that does compress all old emails on the whole server:
/scripts/compressmail :-)
Yes please add this feature.
Being able to compress all existing messages without having to convert the mailbox to and from would be so much better and dramatically reduce the possibility of errors and problems during the conversion.
Yes please add this feature.
Being able to compress all existing messages without having to convert the mailbox to and from would be so much better and dramatically reduce the possibility of errors and problems during the conversion.
We have a few really huge mailboxes. like many GB is size. It would be fantastic to have this "compress old email" option, even if it were a script to run in the shell.
We have a few really huge mailboxes. like many GB is size. It would be fantastic to have this "compress old email" option, even if it were a script to run in the shell.
This is a needed feature. Often we migrate cPanel accounts from other legacy servers or hosts who don't use compression and have huge 20-40gb mailboxes. Is this in the roadmap yet? Thanks!
This is a needed feature. Often we migrate cPanel accounts from other legacy servers or hosts who don't use compression and have huge 20-40gb mailboxes. Is this in the roadmap yet? Thanks!
+1 for this one. Due to the lack of this feature, disk usage is showing data for individual mail boxes, when old emails are not compressed. This is very misleading for end cPanel user.
+1 for this one. Due to the lack of this feature, disk usage is showing data for individual mail boxes, when old emails are not compressed. This is very misleading for end cPanel user.
I thought I would leave another comment on this thread that I originally commented on ~5 months ago. I did some of my own testing with our top 6 accounts size-wise. I took the packaged up accounts (from pkgacct) restored them to a test server with email compression enabled, then ran the conversion from maildir -> mdbox -> maildir.
Prior to the conversion I verified each set of folders inside each mail box and the total message count for each.
I then validated the same post-conversion to mdbox and back.
Here's what I found:
0) We definitely saved tons of space doing this.
1) There seemed to be no data loss (only counted the folders and message counts for each so I cannot comment on the actual emails themselves as I'd still be checking them!)
2) I DID find however that when connected to a converted mailbox (I did my own to test it out too), my client-side flags were all borked up. I happen to use Mac Mail that gives me multi-colored flags (at least on the Desktop client) and those were all completely different. It appears the conversion process changes some "ID" in the email file that means the client has the wrong emails 'flagged'. From my research I think this was discussed already online - but I don't have the link for reference. The only other solution I saw was a client-side bit of code that would preserve (rewrite) the old ID so as to avoid that issue. That looked a little too intense at the time though so I did not pursue it.
I guess the net of my comment would be: Even if they "enabled" this feature, I would suspect they'd need to crack the nut of keeping the IDs the same or at least restoring them automatically after compression. So the "tools" may already be there, but there's some other magic to really make it work seamlessly to the end user.
At least these are my thoughts based on my experiences..
Cheers.
I thought I would leave another comment on this thread that I originally commented on ~5 months ago. I did some of my own testing with our top 6 accounts size-wise. I took the packaged up accounts (from pkgacct) restored them to a test server with email compression enabled, then ran the conversion from maildir -> mdbox -> maildir.
Prior to the conversion I verified each set of folders inside each mail box and the total message count for each.
I then validated the same post-conversion to mdbox and back.
Here's what I found:
0) We definitely saved tons of space doing this.
1) There seemed to be no data loss (only counted the folders and message counts for each so I cannot comment on the actual emails themselves as I'd still be checking them!)
2) I DID find however that when connected to a converted mailbox (I did my own to test it out too), my client-side flags were all borked up. I happen to use Mac Mail that gives me multi-colored flags (at least on the Desktop client) and those were all completely different. It appears the conversion process changes some "ID" in the email file that means the client has the wrong emails 'flagged'. From my research I think this was discussed already online - but I don't have the link for reference. The only other solution I saw was a client-side bit of code that would preserve (rewrite) the old ID so as to avoid that issue. That looked a little too intense at the time though so I did not pursue it.
I guess the net of my comment would be: Even if they "enabled" this feature, I would suspect they'd need to crack the nut of keeping the IDs the same or at least restoring them automatically after compression. So the "tools" may already be there, but there's some other magic to really make it work seamlessly to the end user.
At least these are my thoughts based on my experiences..
Cheers.
This is something we are looking at for 2022. Not sure exactly how it will look, but I will update here as we move forward.
Koree A. Smith
--
Product Owner
cPanel, LLC
This is something we are looking at for 2022. Not sure exactly how it will look, but I will update here as we move forward.
Koree A. Smith
--
Product Owner
cPanel, LLC
Replies have been locked on this page!