On Tue, 2012-01-17 at 09:36 +0100, Jan-Frode Myklebust wrote: > I now have "mail_home = /srv/mailstore/%256RHu/%d/%n". Is there any way > of asking dovecot where a user's home directory is?
No.. > It's not in "doveadm user": > > $ doveadm user -f home janfr...@lyse.net > $ doveadm user janfr...@tanso.net > userdb: janfr...@tanso.net > mail : mdbox:~/mdbox > quota_rule: *:storage=1048576 Right, because it's a default setting, not something that comes from a userdb lookup. > Alternatively, is there an easy way to calculate the %256RHu hash ? Nope.. Maybe a new command, or maybe a parameter to doveadm user that would show mail_uid/gid/home. Or maybe something that dumps config output with %vars expanded to the given user. Hmm.