Compress IMAP account on Nethserver 7


(Juan Carlos Fernandez) #1

Is there a way to compress/compact stored mails on each IMAP account on a Nethserver 7 ?

I have installed the following mail modules:

  • nethserver-roundcubemail-1.3.0-1
  • nethserver-mail-common-2.4.5-1
  • nethserver-mail-filter-2.4.5-1
  • nethserver-mail-disclaimer-2.4.5-1

(Markus Neuberger) #2

It’s possible to compact with Roundcube.

On the bottom left click the gear:

grafik

In the roundcube server settings you could setup “Compact Inbox on logout”.


(Juan Carlos Fernandez) #3

I read that “Compact Inbox on logout” option does is:

“This will remove all messages flagged for deletion from the Inbox when you log out”

What I would like to do is reduce the size of the IMAP Account by compressing it.

Is this possible ?


(Davide Principi) #4

According to their docs

Compact Inbox on logout
This will remove all messages flagged for deletion from the Inbox when you log-off.

(Sorry if it has been already posted)


(Michael Kicks) #5

I don’t know if Linux support on the fly file compression (EXT4 shouldn’t) , but often… compression means lacks of performance.
@davidep is used maildir or mbox as default mail format?


(Davide Principi) #6

I don’t know if it is possible, but I think it’s a task for dovecot…

Maildir…


(Markus Neuberger) #7

https://wiki.dovecot.org/Plugins/Zlib


(Davide Principi) #8

Out of luck tonight MrMarkuz :wink:

It compresses on the wire data, not storage

Shoot!


(Markus Neuberger) #9

Link was wrong, edited.


(Davide Principi) #10

Awesome! But not straightforward… However seems viable!

Did you check our current dovecot version compatibility?

Alternative solution to compression: buy another hard disk :money_mouth_face:

Compression is CPU bounded: perhaps it requires less disk space but more CPU power.


(Michael Kicks) #11

Also, using a flash storage could lead to a bit more write overhead… On the other side, if disk space is an issue (virtual server) compression could lead to more problem than effective solutions, due to computational overhead.


(Markus Neuberger) #12

We use dovecot 2.2.36 (oldstable) and zlib compression seems implemented.