Re: mdbox vs. maildir format

2022-10-19 Thread Doug
On 10/18/2022 7:46 PM, Steve Litt wrote: On Tue, 2022-10-18 at 16:48 +0200, Bernardo Reino wrote: On 18/10/2022 12:17, Michael wrote:  >  > [...] so, raid is mandatory, which is already the case, but what about backup? how can i achieve a backup/snapshot of both, the mdbox (nfs share) and

Re: mdbox vs. maildir format

2022-10-18 Thread Gedalya
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" >> >>

Re: mdbox vs. maildir format

2022-10-18 Thread Steve Litt
On Tue, 2022-10-18 at 16:48 +0200, Bernardo Reino wrote: > On 18/10/2022 12:17, Michael wrote: >  > >  > [...] > > so, raid is mandatory, which is already the case, but what about backup? > > how can i achieve a backup/snapshot of both, the mdbox (nfs share) and > > the index files (local raid)

Re: mdbox vs. maildir format

2022-10-18 Thread Bernardo Reino
On 18/10/2022 12:17, Michael wrote: > > [...] so, raid is mandatory, which is already the case, but what about backup? how can i achieve a backup/snapshot of both, the mdbox (nfs share) and the index files (local raid) and assure they are consistent? You can use doveadm to backup the

RE: mdbox vs. maildir format

2022-10-18 Thread Aki Tuomi
> On 18/10/2022 14:09 EEST Marc wrote: > > > > > > "Note that with dbox the Index files contain significant data which is > > held nowhere else. Index files for both sdbox and mdbox contain message > > flags and keywords. For mdbox, the index file also contains the map_uids > > which link

RE: mdbox vs. maildir format

2022-10-18 Thread Marc
> > "Note that with dbox the Index files contain significant data which is > held nowhere else. Index files for both sdbox and mdbox contain message > flags and keywords. For mdbox, the index file also contains the map_uids > which link (via the “map index”) to the actual message data. This data

Re: mdbox vs. maildir format

2022-10-18 Thread Gedalya
On 10/18/22 18:46, Marc wrote: >> you must not lose the dbox index files, as they can’t be >> regenerated without data loss. > I have read this also, and was also worried about this, but when I look at > the flat m.988 file, I still have quite a lot of useful data there. "Note that with

Re: mdbox vs. maildir format

2022-10-18 Thread Gedalya
On 10/18/22 18:17, Michael wrote: > what about backup? how can i achieve a backup/snapshot of both, the mdbox > (nfs share) and the index files (local raid) and assure they are consistent? If you do your backups using doveadm backup, then the result should be consistent, at least in the sense

RE: mdbox vs. maildir format

2022-10-18 Thread Marc
> > i am considering changing my mailbox format from maildir to mdbox. the > reason for this is mainly, b/c i have (a) multiple large mailboxes with > tens of thousands of mail files, and (b) most of these mails files have > a > size significantly smaller than the sector size of the disk. > >

Re: mdbox to Maildir

2019-06-20 Thread Adam Raszkiewicz via dovecot
Ok, so I have used my brain and came up with that: * Created new directory and copied over original dovecot to that location as /tmp/destination * Spawned that dovecot as dovecot-test * Modified dovecot.conf and set mail_location=maildir:/tmp/destination/mailboxes/ * Then I had

Re: mdbox to Maildir

2019-06-19 Thread Sami Ketola via dovecot
> On 19 Jun 2019, at 5.05, Adam Raszkiewicz wrote: > > I saw that before but there is only maildir -> mdbox but not mdbox -> maildir > Did I have missed anything there? There is no direct example on how to do just that but you can use your brain and modify the mbox -> maildir example a bit.

Re: mdbox to Maildir

2019-06-18 Thread Adam Raszkiewicz via dovecot
ington Subject: Re: mdbox to Maildir On 18 Jun 2019, at 16.59, Odhiambo Washington via dovecot mailto:dovecot@dovecot.org>> wrote: On Tue, 18 Jun 2019 at 01:35, Ralph Seichter via dovecot mailto:dovecot@dovecot.org>> wrote: * Odhiambo Washington via dovecot: > Is it

Re: mdbox to Maildir

2019-06-18 Thread Sami Ketola via dovecot
> On 18 Jun 2019, at 16.59, Odhiambo Washington via dovecot > wrote: > > > > On Tue, 18 Jun 2019 at 01:35, Ralph Seichter via dovecot > wrote: > * Odhiambo Washington via dovecot: > > > Is it possible? How do I do it for ALL mailboxes? > > This has been asked

Re: mdbox to Maildir

2019-06-18 Thread Odhiambo Washington via dovecot
On Tue, 18 Jun 2019 at 01:35, Ralph Seichter via dovecot < dovecot@dovecot.org> wrote: > * Odhiambo Washington via dovecot: > > > Is it possible? How do I do it for ALL mailboxes? > > This has been asked (and answered) recently; see the Dovecot Wiki. > > -Ralph > Could you kindly point me to the

Re: mdbox to Maildir

2019-06-17 Thread Ralph Seichter via dovecot
* Odhiambo Washington via dovecot: > Is it possible? How do I do it for ALL mailboxes? This has been asked (and answered) recently; see the Dovecot Wiki. -Ralph