ZLIB/ZSTD Compressed MBOX in Maildir++ layout

Pedro Ribeiro pribeiro at net.ipl.pt
Mon Jun 28 12:00:59 EEST 2021


Hello!

Thank you for the suggestion.

That solved the problem of using layout FS with MBOX storage format.

After copying all the mail of the test user to the namespace in this 
format I've compressed all the storage files with ZSTD and that changed 
the name with the additional suffix .zst

Dovecot seems to need this to be .zstd so I've fixed the names.

But ... it doesn't work.

> Jun 28 08:56:39 ribble dovecot: 
> imap(pribeiro at net.ipl.pt)<82609><vi0h1M7FGMMKZP4/>: Error: Mailbox 
> @HISTZLIB/IPLNet: 
> stat(/mnt/mail-hist/historic-fs/net.ipl.pt/ro/pribeiro/mailboxes/IPLNet/mBoX-MeSsAgEs) 
> failed: No such file or directory
In that directory the filename is:

> -rw------- 1 vmail vmail 853M Jun 25 17:25 mBoX-MeSsAgEs.zstd
What am I doing wrong?

regards!

On 24/06/2021 14:53, Josef 'Jeff' Sipek wrote:
> On Thu, Jun 24, 2021 at 10:35:24 +0100, Pedro Ribeiro wrote:
>> Hello everyone!
>>
>> Our archive namespace is kept in MBOX format with Maildir++ layout due to:
>>
>>    * Need to have the email from all users/folders self contained (our
>>      base namespace uses MDBOX with single instance storage of attachments)
>>    * MBOX/FS layout isn't supported because some folders have messages
>>      and subfolders.
> You should be able to use the fs layout if you specify a dirname:
> https://doc.dovecot.org/configuration_manual/mail_location/mbox/mboxchildfolders/#messages-in-named-file
>
> Then, the compression suffix being added shouldn't matter.
>
> Jeff.

-- 
Best regards,

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pedro Ribeiro
Politécnico de Lisboa, Serviços da Presidência
Departamento de Sistemas de Informação e Comunicações
Phone:   +351 210 464 700 (general) / VoIP: 80100
Helpdesk:helpdesk at net.ipl.pt  /https://www.net.ipl.pt
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3605 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210628/249e2bba/attachment.p7s>


More information about the dovecot mailing list