Compressed messages: moving to another server
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
-
Honestly I don't know the answer for this in terms of the transfer, the issue being that you typically wouldn't ever *need* to decompress messages. I know that Dovecot uses the zlib plugin here: to compress them. It could be a matter of adding that plugin to the dovecot conf on the new server. They may also benefit from or imapsync 0 -
Hello @cPanelLauren, thanks for the info. I'll try the Zlib plugin as mentioned. Imapsync is a good idea too, but not so easy. Rogerio 0 -
Thanks, working fine. Just for record: dovecot.conf (or 10* files on conf.d): # 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.0
Please sign in to leave a comment.
Comments
3 comments