Compressed messages: moving to another server

Arvy

Well-Known Member
Oct 3, 2006
136
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Hello,

My client has about 7 Gb of compressed emails, by cPanel (WHM Mailserver Configuration -> Compress Messages).

Now, they are moving to a dedicated server with Postfix + Dovecot "default" config. So, Dovecot cannot understand the compressed messages.

I've rsync'ed the folders. I can see all mail folders and messages. But when I read any message, they are empty and the header shows the binary data (Roundcube).

How can I decompress the messages (worst), or instruct Dovecot that the messages are compressed without touching the original files (better)?

Thanks a lot,
Rogerio
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,266
313
Houston
  • Like
Reactions: Arvy

Arvy

Well-Known Member
Oct 3, 2006
136
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Thanks, working fine. Just for record:

dovecot.conf (or 10* files on conf.d):
Code:
# global
mail_plugins = $mail_plugins zlib

# insert 2 lines
plugin {
    (...)
    zlib_save_level = 9
    zlib_save = gz
}

# append zlib (create if not exists)
protocol imap {
   mail_plugins = (...) zlib
}

# append zlib (create if not exists)
protocol pop3 {
   mail_plugins = (...) zlib
}
... and restart dovecot.
 
  • Like
Reactions: cPanelLauren