Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Dovecot compression

Discussion in 'E-mail Discussion' started by codepoet, Jul 25, 2017.

Tags:
  1. codepoet

    codepoet Member

    Joined:
    Jun 28, 2017
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hello, since v66 of whm, we now have Dovecot compression.

    I read up on it, and understand by activating it, it will compress future emails from either mdbox or maildir accounts.

    Does this option affect reliability in any way ? as in data corruption or unable to read the compressed emails (using webmail or a client like outlook per example)?

    Thank you
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've not seen reports of any compatibility problems with email clients, or with data corruption, with the use of email compression. However, keep in mind cPanel 66 is only released to the Current build tier at this time. You may want to wait until cPanel 66 is in the "Release" or "Stable" tiers before using the feature if you are concerned about potential issues on a production system.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. codepoet

    codepoet Member

    Joined:
    Jun 28, 2017
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael

    Thanks a lot for the swift response. Indeed I forgot it was on Current build. But still thank you for answering.
     
    cPanelMichael likes this.
  4. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    The default comression level is 6 but how high can you set it to? 10? 99?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Here are the requirements for this value:
    • “Compression Level” must be an integer.
    • “Compression Level” cannot be less than 1.
    • “Compression Level” cannot be greater than 9.
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Thanks for the info cPanelMichael.
    Wow this compression tool has saved GBs of space!! To compress already saved messages do the following:
    1) enable compression
    2) In WHM>>email>>>Mailbox conversion, change users mailbox format ( example maildir to mdbox ) and then change back again.
    Using the above method, on level 6 compression a users mail directory inbox of 5.5 GB mail box dropped to 3.5GB :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #6 kernow, Aug 22, 2017
    Last edited: Aug 22, 2017
    cPanelMichael likes this.
  7. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,344
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Changing the users' mailbox format back and forth does not compress existing email that was uncompressed before the running the script. Must have been some other reason for you suddenly freeing up 2 GB.

    I did the same thing as outlined by you, and it did not compress existing mail. cPanel then had me open a ticket, which I did. they confirmed that existing email doesn't get compressed using the CLI conversion commands or WHM --> email --> Mailbox Conversion. And they explained why, basically stating that the conversion scripts do not pass any of the existing messages through Dovecot as part of the conversion process and that it is within Dovecot where that compression happens. Makes sense to me.

    I'm glad you saw such a significant descrease in usage, but hopefully you didn't realize that decrease in usage at the expense of missing messages post-conversion.

    Mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,344
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Actually, it appears to compress all of the mail if I switch from mdbox back to maildir. But then, if I switch from maildir back to mdbox after that it appears that all of the m.* files except for the most recent ones (when I enabled compression in Dovecot) are uncompressed. Odd. I have converted one account's mailboxes back and forth half a dozen times. Every time I convert it back to maildir, every message in all mailboxes is a compressed file. Every time I convert it back to mdbox, only the m.* files that contain messages that arrived after I switched on compression are compressed.

    Mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @mtindor,

    Keep in mind that the mailbox conversion workaround to compress existing emails is not supported or tested. It's just behavior that was noted in some cases and thus offered as a potential workaround. The best way to see this work is to have a feature implemented for the ability to compress existing emails. I see you have added a comment to the following feature request:

    Ability to compress existing email

    Thank you for taking the time to do that. It's the best approach to see support for this added to the product. I've also added my vote to this feature request.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice