[Dovecot] shared folders

develop develop at adeiaconsulting.it
Mon Feb 10 16:48:26 UTC 2014


Hi,

I can't access a shared folder , when I try to debug

doveadm acl debug -u john.doe shared/ a_shared_mail /inbox

I receive this message:

doveadm acl debug -u john.doe shared/a_shared_mail/inbox
doveadm(john.doe): Error: stat(/home/a_shared_mail/Maildir/.inbox) failed: Permission denied
doveadm(john.doe): Error: stat(/home/a_shared_mail/Maildir/.inbox) failed: Permission denied
doveadm(john.doe): Error: stat(/home/a_shared_mail/Maildir/.inbox/tmp) failed: Permission denied (euid=1003(john.doe) egid=1004(john.doe) missing +x perm: /home/a_shared_mail/Maildir, dir owned by 1006:1007 mode=0700)
doveadm(john.doe): Error: Can't open mailbox shared/a_shared_mail/inbox:Internal error occurred. Refer to server log for more information. [2014-02-10 17:30:42]

unfortunately I don't see anything useful in my logs:

Feb 10 17:27:59 ip-xx-xx-xxx-xx dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Feb 10 17:27:59 ip-xx-xx-xxx-xx dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Feb 10 17:27:59 ip-xx-xx-xxx-xx dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled)
Feb 10 17:30:23 ip-xx-xx-xxx-xx dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Feb 10 17:30:23 ip-xx-xx-xxx-xx dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Feb 10 17:30:23 ip-xx-xx-xxx-xx dovecot: auth: Debug: auth client connected (pid=3398)
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=40438#011resp=AHRlY2huaWNzADFMd01Hek0wZjdIVzc3dWZaaWhBWUdlSTJIWmQ5cEdi
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth-worker: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth-worker: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth-worker: Debug: pam(a_shared_mail,127.0.0.1): lookup service=dovecot
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth-worker: Debug: pam(a_shared_mail,127.0.0.1): #1/1 style=1 msg=Password:
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth: Debug: client out: OK#0111#011user=a_shared_mail
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth: Debug: master in: REQUEST#0113071934465#0113398#0111#011530aafc2ed51a8ee026b48c2bfa924d3
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth: Debug: passwd(a_shared_mail,127.0.0.1): lookup
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: auth: Debug: master out: USER#0113071934465#011a_shared_mail#011system_groups_user=a_shared_mail#011uid=1006#011gid=1007#011home=/home/a_shared_mail
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap-login: Login: user=<a_shared_mail>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3401, secured
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: Effective uid=1006, gid=1007, home=/home/a_shared_mail
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/a_shared_mail/Maildir
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: maildir++: root=/home/a_shared_mail/Maildir, index=, control=, inbox=/home/a_shared_mail/Maildir, alt=
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: initializing backend with data: vfile
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: acl username = a_shared_mail
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: owner = 1
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl vfile: Global ACL directory: (none)
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%h/Maildir:INDEX=/home/a_shared_mail/Maildir/shared/%u
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: shared: root=/var/run/dovecot, index=, control=, inbox=, alt=
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: initializing backend with data: vfile
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: acl username = a_shared_mail
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl: owner = 0
Feb 10 17:30:28 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl vfile: Global ACL directory: (none)
Feb 10 17:30:33 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl vfile: reading file /home/a_shared_mail/Maildir/dovecot-acl
Feb 10 17:30:33 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Debug: acl vfile: reading file /home/a_shared_mail/Maildir/dovecot-acl
Feb 10 17:30:37 ip-xx-xx-xxx-xx dovecot: imap(a_shared_mail): Connection closed bytes=45/324
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: master in: USER#0111#011john.doe#011service=doveadm
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: passwd(john.doe): lookup
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: master out: USER#0111#011john.doe#011system_groups_user=john.doe#011uid=1003#011gid=1004#011home=/home/john.doe
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: master in: USER#0112#011a_shared_mail#011service=lib-storage
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: passwd(a_shared_mail): lookup
Feb 10 17:30:42 ip-xx-xx-xxx-xx dovecot: auth: Debug: master out: USER#0112#011a_shared_mail#011system_groups_user=a_shared_mail#011uid=1006#011gid=1007#011home=/home/a_shared_mail


my dovecot -n is this:

# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-58-virtual x86_64 Ubuntu 12.04.4 LTS ext4
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
disable_plaintext_auth = no
hostname = remote.xxxx.xx
mail_debug = yes
mail_location = maildir:/home/%u/Maildir
mail_plugins = acl
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEX=%h/Maildir/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  driver = pam
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = xxx at xx.xx
protocols = " imap sieve pop3 sieve"
service dict {
  unix_listener dict {
    group = mail
    mode = 0660
    user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  driver = passwd
}
protocol lda {
  mail_plugins = acl sieve acl
}
protocol imap {
  mail_plugins = acl acl imap_acl
}

The permissions on /var/lib/dovecot/ are these:

-rw-r--r-- 1 vmail mail   0 Feb  7 18:07 shared-mailboxes
-rw-r--r-- 1 vmail mail 230 Feb 10 15:55 ssl-parameters.dat

But the dict file it's always empty, I tried almost everything and I don't understand where I'm doing wrong.

Best regards
Francesco


More information about the dovecot mailing list