Thank you for your answer! I'll try to use it for my autoconfiguration script after weekends)) I use AD as userdb and passdb and have a group mailboxes, but main users for this mailboxes hasn't got any password. And I need automatically subscribe my users to new group maiboxes. So "full-access" masteruser is really good for me[?]
2010/4/16 Timo Sirainen tss@iki.fi
On Fri, 2010-04-16 at 16:57 +0400, Неворотин Вадим wrote:
I've add
$ENV{'MASTER_USER'} = $ENV{'USER'};
to my postlogin-imap script, and it looks like that all is working, thank you!!! I'll test it next week, but as I see ACL and base operations work, so I think that all other works too))
But what does it mean when I return in master_user field current user's name?)))
It means exactly what you do in your post-login script. It sets master_user to same as user.
But if I return in master_user not a current user name, but something else?))) What master_user field control?))) (Sorry, I can't find any information about this feature[?])
master_user is used for the ACL checks. Currently it doesn't do anything else. So if you set master_user to "foo", it uses foo's ACLs when determining access to mailboxes. There's nothing special about master users after login, they're just usernames as any other usernames are.