I'm deliberating a situation where I need to use Ubuntu 22.04 for a rather heavy use email server with "infinite" storage for users via Dovecot + maildir
.
A lot of the users live in the era of exchanging very large attachments (PDFs, spreadsheets, docs, etc.) and are entirely stuck in this pattern with no chance of change. I'm left with a task of providing quota-less email for around 50 users that have mailboxes that are already around 10-30gb a piece.
After doing some digging it appears that Dovecot with the more desirable maildir
has a big problem with high inode usage, but both ZFS and btrfs seem to mitigate this issue. I have reviewed mdbox
and won't be using it.
The next and only remaining problem it seems to me is to decide whether or not to use ZFS or btrfs with transparent compression so as to make the compression situation simpler and seamless vs using some of the other compression options for Dovecot.
I'm leaning towards ZFS with either zstd
or lz4
.
Can anyone recommend which filesystem would behave better on a virtual machine on a deployment such as Linode with Ubuntu 22.04 in terms of a lower memory and CPU utilization footprint?