[Dovecot] resolve mail_home ?
I now have "mail_home = /srv/mailstore/%256RHu/%d/%n". Is there any way of asking dovecot where a user's home directory is?
It's not in "doveadm user":
$ doveadm user -f home janfrode@lyse.net
$ doveadm user janfrode@tanso.net
userdb: janfrode@tanso.net
mail : mdbox:~/mdbox
quota_rule: *:storage=1048576
Alternatively, is there an easy way to calculate the %256RHu hash ?
-jf
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@lyse.net $ doveadm user janfrode@tanso.net userdb: janfrode@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.
That comand/paramater should be great for our backup scripts in our
hashed mdboxes tree, we are using now slocate...
Regards
Javier
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.
participants (3)
-
Jan-Frode Myklebust
-
Javier Miguel Rodríguez
-
Timo Sirainen