Use case
What problem you are trying to solve?
Maildir is less space efficient and less scalable than a clustered database as a mail store.
Note alternatives you considered and why they are not useful.
I've tried using Maildir over an S3 backend, but performance can be an issue.
Your idea for a solution
Compress messages, deduplicate attachments and store in a clustered database like MongoDB.
How your solution would work in general?
Wildduck stores messages and attachments in MongoDB. It compresses data and deduplicates attachments, greatly reducing storage requirements and allowing us to easily scale our deployments. I currently use it in production and works great.