[Dovecot] resolve mail_home ?

Timo Sirainen tss at iki.fi
Tue Jan 17 17:27:15 EET 2012


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 janfrode at lyse.net
> 	$ doveadm user janfrode at tanso.net
> 	userdb: janfrode at 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.




More information about the dovecot mailing list