multiple mailstores

Aki Tuomi aki.tuomi at open-xchange.com
Thu Jan 7 07:28:22 EET 2021


> On 07/01/2021 01:51 Alexander Rivanykov <screenie at gmx.at> wrote:
> 
> 
> Hi,
>  
>  I need to merge mail data from two companies to one - i could attach the second storage via NFS which has the sdbox mailbox format while the other one is maildir.
>  Is it possible to have two mail locations with different mailbox formats (maildir and sdbox) on one dovecot instance?
>  
>  Regardless of whether this is possible or not - what is the procedure to switch from maildir to sdbox?
> 
>  I've actually as mail_location set:
>  mail_location = maildir:/srv/vmail/%d/%n/maildir
> 
>  And for the shared namespace:
> location = maildir:/srv/vmail/%%d/%%n/maildir:INDEX=~/maildir/shared/%%u:CONTROL=~/maildir/shared/%%u
> 
>  How would they look like for sdbox?
>  
>  mail_location most likely:
>  mail_location = sdbox:/srv/vmail/%d/%n/sdbox
>  
>  But how would the location look like for the shared namespace?
>  
>  thx,
>  Alex

You can have per-user mailstore format.

sdbox shared location looks like

location = sdbox:/srv/vmail/%%d/%%n/sdbox:INDEXPVT=~/sdbox/shared/%%u

Aki


More information about the dovecot mailing list