[Dovecot] Master user
Hi,
I'd like to have a master user that can read the other users mailboxes. I have only one user who read and write the mail (i.e. I use the static userdb) and I use namespace for public and shared mailboxes. I can authenticate to the server but I am not able to list the mailboxes:
This is my conf:
And in /etc/dovecot/master-shared:
master:{PLAIN}password
What I did wrong?
Thanks, Emiliano
On Tue, 2012-02-28 at 16:11 +0000, Emiliano Rago wrote:
With ACL plugin enabled, the master user's ACLs are used. And your master user has no ACLs, so nothing is shown. The proper fix for this would be to set a default ACL for the master user, but default ACLs don't exist yet. So you'll have to kludge this, by changing the master user back to the login username. Try if this works:
userdb { args = uid=mailreader gid=mailreader allow_all_users=yes master_user=%u driver = static }
Also don't set your home to /. Better not to set it at all. http://wiki2.dovecot.org/VirtualUsers/Home
On 02/28/2012 07:47 PM, Timo Sirainen wrote:
That's the log:
Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=60873#011resp=<hidden> Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: auth(admin,127.0.0.1,master): Master user lookup for login: rago Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: passwd-file(admin,127.0.0.1,master): lookup: user=admin file=/etc/dovecot/master-shared Feb 28 19:57:48 oneprivvm-239 dovecot: auth: passdb(admin,127.0.0.1,master): Master user logging in as rago Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: client out: OK#0111#011user=rago Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: master in: REQUEST#0113607363585#0112591#0111#0114d6e591e980edb0fabccfa9c1cd4e198 Feb 28 19:57:48 oneprivvm-239 dovecot: auth: Debug: master out: USER#0113607363585#011rago#011uid=5000#011gid=5000#011home=/#011master_user=rago#011master_user=admin Feb 28 19:57:48 oneprivvm-239 dovecot: imap-login: Login: user=<rago>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2596, secured
Thanks for answering, Emiliano
On 28.2.2012, at 21.04, Emiliano Rago wrote:
USER#0113607363585#011rago#011uid=5000#011gid=5000#011home=/#011master_user=rago#011master_user=admin
Oh, right, it doesn't work because there are two master_users and the second one overrides the first one. This might be fixed in a newer version (maybe only in v2.1), since I remember doing something related to this. Another possibility for fixing this would be to use post-login script that sets MASTER_USER environment to same as USER, that'll definitely fix it. http://wiki2.dovecot.org/PostLoginScripting
participants (2)
-
Emiliano Rago
-
Timo Sirainen