[Dovecot] Master user

Emiliano Rago rago at lal.in2p3.fr
Tue Feb 28 18:11:55 EET 2012


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:

> emiliano at dovecot:~$ telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE AUTH=PLAIN] Dovecot ready.
> 1 login user*master password
> 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND
UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL
RIGHTS=texk] Logged in
> 5 LIST "" *
> * LIST (\Unmarked) "." "INBOX"
> * LIST (\Noselect \HasNoChildren) "." "shared"
> * LIST (\Noselect \HasChildren) "." "public"
> 5 OK List completed.
> * BYE Server shutting down.
> Connection closed by foreign host.

This is my conf:

> # 2.0.9: /etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-131.0.15.el6.x86_64 x86_64 Scientific Linux
release 6.1 (Carbon) ext4
> auth_master_user_separator = *
> disable_plaintext_auth = no
> mail_location =
maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u
> mbox_write_locks = fcntl
> namespace {
>   inbox = yes
>   location =
>   prefix =
>   separator = .
>   type = private
> }
> namespace {
>   list = yes
>   location =
maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/MAILDIR/shared/%u/%%u
>   prefix = shared.%%u.
>   separator = .
>   subscriptions = no
>   type = shared
> }
> namespace {
>   list = yes
>   location = maildir:/data/MAIL/SHARED
>   prefix = public.
>   separator = .
>   subscriptions = no
>   type = public
> }
> passdb {
>   driver = pam
> }
> passdb {
>   args = /etc/dovecot/master-shared
>   driver = passwd-file
>   master = yes
> }
> plugin {
>   acl = vfile:/etc/dovecot/global-acls:cache_secs=300
>   acl_anyone = allow
>   acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes.db
> }
> protocols = imap
> service auth {
>   unix_listener auth-userdb {
>     group = mailreader
>     mode = 0600
>     user = mailreader
>   }
> }
> ssl = no
> ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
> ssl_key = </etc/pki/dovecot/private/dovecot.pem
> userdb {
>   args = uid=mailreader gid=mailreader home=/ allow_all_users=yes
>   driver = static
> }
> protocol lda {
>   mail_plugins = acl
> }
> protocol imap {
>   mail_plugins = acl imap_acl
> }

And in /etc/dovecot/master-shared:

> master:{PLAIN}password

What I did wrong?

Thanks,
Emiliano



More information about the dovecot mailing list