stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
3.53k stars 135 forks source link

[enhancement]: S3 folders per user and per domain #532

Closed williamdes closed 2 weeks ago

williamdes commented 2 weeks ago

Which feature or improvement would you like to request?

I'd like to see this feature: for S3 back ends, allow to have a config argument that works like this: storage-format = "%{domain}/%{user}" The most important for me is to have folders per user and per domain.

This way, when I backup S3 I can know what domain take longer and the size per domain. And also exclude domains.

Is your feature request related to a problem?

While browsing my S3 storage with https://github.com/s3fs-fuse/s3fs-fuse I noticed that all emails are in the same "folder"

Code of Conduct

mdecimus commented 2 weeks ago

Closing as this cannot be implemented. It would break JMAP and increase complexity. What could be implemented instead is a way to see the disk usage by domain.

williamdes commented 2 weeks ago

per domain bucket could work? how would it break jmap?