I think I don't understand the question.
Dovecot knows where the user's home is, you don't need to guess. With mail_home or with Passdb variables you can define the user's home location and you can use 'doveadm user' to show where the home directory is in the filesystem.
However, if you are migrating I would use dovecot sync or similar tool instead of doing the manual process.
Regards Manuel Delgado
On Wed, Sep 23, 2020 at 10:46 AM Adrian Minta <adrian.minta@gmail.com> wrote:
Thank you for your reply.
One question though, if you add a mount point how do you know what user to move ?
On 9/23/20 7:35 PM, Manuel Delgado wrote:
Hi Adrian,
It depends much on your site configuration.
In our case, we have several mount points and we distribute our user mailboxes using username hash (%N)[1] and limit this hash to the number of mount points. We preferred %N over %H because the distribution of users was much better.
Ex. xstore%2.3Nn turns to xstore00, xstore01 and xstore03.
Regards Manuel Delgado
[1] https://doc.dovecot.org/configuration_manual/config_file/config_variables/#m...
- Usuario Linux* *#520940 <http://counter.li.org/>*
On Mon, Sep 21, 2020 at 8:24 AM Adrian Minta <adrian.minta@gmail.com> wrote:
Hi everyone,
I want to ask if any of you has done a migration from a single storage to multiple back-end storages and what is the best strategy for folder hashing that you use.
Using something like %H or %M how do you predict where the mail will end up in order to move the existing folders ?
Thank you !
-- Best regards, Adrian Minta
-- Best regards, Adrian Minta