acl shared maildir with virtual users

Rich Simcox r_al_sim at yahoo.co.uk
Sat Jun 24 01:11:33 EEST 2017


Can anyone point out where i'm going wrong with my dovecot sharedinbox setup with ACL i'm contemplating giving up with dovecot alltogether i've spent 3 days trying different paths to the virtual users mailboxes

I seem to have two issues

my acls are getting written to my sql db fine

in roundcube i can see the shared folder but cant subscribe to it

in thunderbird if i go to namespaces it sees the shared. namespace but its not listing anything in it even though my acls are written to the db

please someone tell me what i'm missing i'm betting its something silly but i've been over and over the wiki 

here is my conf and below it an extract of my debug log

# 2.2.28 (bed8434): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-642.3.1.el6.x86_64 x86_64 CentOS release 6.9 (Final) 
auth_cache_size = 1 M
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_policy_hash_mech = sha512
auth_policy_hash_nonce = 78204771
auth_policy_hash_truncate = 64
auth_policy_request_attributes = auth_database=mail database=mail service=dovecot username=%{orig_user} authtoken_hash=$0$0$%{hashed_password} local_host=%{real_lip} local_port=%{real_lport} remote_host=%{real_rip} remote_port=%{real_rport}
auth_policy_server_api_header = X-API-Key:dovecot:xxxxxxxxxxxx
auth_policy_server_timeout_msecs = 3000
auth_policy_server_url = http://127.0.0.1:579/dovecot-auth-policy
auth_username_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$-=?^_{}~./@+%"
auth_verbose = yes
dict {
  acl = sqlite:/usr/local/cpanel/etc/dovecot/dovecot-dict-shares.conf.ext
  expire = sqlite:/usr/local/cpanel/etc/dovecot/dovecot-dict-expire.conf.ext
}
disable_plaintext_auth = no
first_valid_uid = 201
lda_mailbox_autocreate = yes
lmtp_save_to_detail_mailbox = yes
login_greeting = Welcome to Motorsport Tools
mail_access_groups = dovecot
mail_debug = yes
mail_plugins = acl quota quota_clone fts fts_solr
mail_prefetch_count = 20
mailbox_list_index = yes
namespace inbox {
  inbox = yes
  location = 
  mailbox Archive {
    auto = create
    special_use = \Archive
  }
  mailbox Archives {
    auto = no
    special_use = \Archive
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = create
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  mailbox spam {
    auto = create
    special_use = \Junk
  }
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /usr/local/cpanel/etc/dovecot/cpauthd-dict.conf
  driver = dict
  result_failure = return-fail
}
passdb {
  args = /usr/local/cpanel/bin/dovecot-wrap
  driver = checkpassword
  skip = authenticated
}
plugin {
  acl = vfile:cache_secs=86400
  acl_anyone = allow
  acl_shared_dict = proxy::acl
  expire_cache = yes
  fts = solr
  fts_solr = url=http://lTkFlGxjRar1hZAW:Ocj1FRRvlUs5Udj6@127.0.0.1:8984/solr/dovecot/
  quota_exceeded_message = Mailbox is full please archive you old mail
  zlib_save = gz
}
protocols = lmtp imap
service auth {
  unix_listener auth-client {
    mode = 0666
  }
}
service config {
  vsz_limit = 2 G
}
service dict {
  unix_listener dict {
    group = dovecot
    mode = 0660
  }
}
service imap-login {
  client_limit = 500
  inet_listener imap {
    address = *,::
  }
  inet_listener imaps {
    address = *,::
  }
  process_limit = 100
  process_min_avail = 8
  service_count = 0
  vsz_limit = 128 M
}
service imap {
  process_limit = 1024
  vsz_limit = 512 M
}
service lmtp {
  client_limit = 1
  process_limit = 500
  unix_listener lmtp {
    group = mail
    mode = 0660
    user = mailnull
  }
  vsz_limit = 512 M
}
service managesieve-login {
  client_limit = 500
  process_limit = 100
  process_min_avail = 8
  service_count = 0
  vsz_limit = 128 M
}
service managesieve {
  process_limit = 1024
  vsz_limit = 512 M
}
service quota-status {
  executable = quota-status -p postfix
  unix_listener quota-status {
    mode = 0666
  }
}
ssl = required
ssl_cert = </etc/dovecot/ssl/dovecot.crt
ssl_cipher_list = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
ssl_key =  # hidden, use -P to show it
ssl_protocols = !SSLv2 !SSLv3
userdb {
  driver = prefetch
}
userdb {
  args = /usr/local/cpanel/etc/dovecot/cpauthd-dict.conf
  driver = dict
}
userdb {
  args = /usr/local/cpanel/bin/dovecot-wrap
  driver = checkpassword
}
protocol imap {
  imap_capability = +NAMESPACE
  imap_client_workarounds = tb-extra-mailbox-sep
  imap_idle_notify_interval = 24 mins
  imap_logout_format = in=%i, out=%o, bytes=%i/%o
  mail_location = maildir:~/
  mail_max_userip_connections = 60
  mail_plugins = acl quota imap_quota imap_acl imap_zlib quota_clone virtual  fts fts_solr
  namespace {
    hidden = no
    list = yes
    location = maildir:%%h/Maildir:INDEXPVT=~/mail/virtual/%u/shared/%%u
    prefix = Shared.%%u.
    separator = .
    subscriptions = no
    type = shared
  }
  namespace sent {
    hidden = yes
    list = no
    location = virtual:/usr/local/cpanel/etc/dovecot/virtual/sent:INDEX=~/mail/virtual/%u
    prefix = sent
    separator = .
  }
  namespace spam {
    hidden = yes
    list = no
    location = virtual:/usr/local/cpanel/etc/dovecot/virtual/spam:INDEX=~/mail/virtual/%u
    prefix = spam
    separator = .
  }
}
protocol lda {
  mail_plugins = quota quota_clone
  postmaster_address = root
  quota_full_tempfail = no
}
local_name home.servers.co.uk www.home.servers.co.uk {
  ssl_cert = </etc/dovecot/ssl/dovecot.crt
  ssl_key =  # hidden, use -P to show it
}
local_name website1.com www.website1.com www.website2.com website2.com {
  ssl_cert = </var/cpanel/ssl/domain_tls/website1.com/combined
  ssl_key =  # hidden, use -P to show it


i see this alot

Debug: acl vfile: reading file /home/server/mail/website2.com/sales/.ebay.Sent/dovecot-acl

this is how my path currently looks in debug but i've tried all sorts

Jun 23 22:32:47 ssd99 dovecot: imap(sales at website2.com): Debug: Namespace : type=shared, prefix=Shared.%u., sep=., inbox=no, hidden=no, list=yes, subscriptions=no location=maildir:%h/Maildir:INDEXPVT=~/mail/virtual/sales at website2.com/shared/%u

this is what my private namespace paths relate to

Jun 23 22:32:47 ssd99 dovecot: imap(sales at website2.com): Debug: Namespace sent: type=private, prefix=sent, sep=., inbox=no, hidden=yes, list=no, subscriptions=yes location=virtual:/usr/local/cpanel/etc/dovecot/virtual/sent:INDEX=~/mail/virtual/sales at website2.com
Jun 23 22:32:47 ssd99 dovecot: imap(sales at website2.com): Debug: fs: root=/usr/local/cpanel/etc/dovecot/virtual/sent, index=/home/server/mail/website2.com/sales/mail/virtual/sales at website2.com, indexpvt=, control=, inbox=, alt=

please someone must know the answer




More information about the dovecot mailing list