mdbox vs. maildir format

Gedalya gedalya at gedalya.net
Wed Oct 19 02:52:19 UTC 2022


On 10/19/22 07:46, Steve Litt wrote:

>> for MAILBOX in $USERS; do
>>          doveadm expunge -u "$MAILBOX" mailbox Trash savedbefore 7d
>>          doveadm expunge -u "$MAILBOX" mailbox Spam savedbefore 30d
>>          doveadm purge -u "$MAILBOX"
>>
>>          LOCATION2="mdbox:/srv/snap_mail/$MAILBOX/mdbox"
>>          doveadm -v backup -u "$MAILBOX" -P "$LOCATION2"
>> done
>>
> Do you think the preceding shellscript will work if I store my Dovecot messages in
> the Maildir form?

It would, including this part:  LOCATION2="mdbox:..."
You can use that as a way to convert between storage formats. Or not. Specify what is needed.



More information about the dovecot mailing list