On Tue, Nov 15, 2011 at 8:44 PM, Timo Sirainen <[email protected]> wrote: > On Sun, 2011-11-13 at 17:25 +0100, Bambero wrote: > >> all maildirs are located in: /var/mail/[email protected]/Maildir > > So this is /var/mail/%u/Maildir template. > >> namespace { >> type = shared >> separator = / >> prefix = shared/%%u/ >> location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u > > You can replace this with: > > location = maildir:/%%u/Maildir:INDEX=~/Maildir/shared/%%u > > Although if this is used outside chroot (e.g. lmtp, doveadm) it won't > work correctly.. > >> Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No >> such file or directory > > This is done because you used %%h, to look up home directory from > userdb. If you don't use %%h, it's not done. >
Thanks but my db backend returns home dir in chroot like /[email protected] while the realpath with no chroot is: /var/mail/[email protected] So both locations in this case are the same location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u location = maildir:/%%u/Maildir:INDEX=~/Maildir/shared/%%u
