[Dovecot] local seen flags with shared mailboxes

Tim Mauerbach tim.mauerbach at googlemail.com
Tue Dec 7 17:11:58 EET 2010


Hello all,

after recent upgrade from 2.0.5 to 2.0.8 it seems that local seen flags for
mails reside in shared mailboxes doesn´t work anymore.

Before the upgrade I had read mails with account #1. Account #2 (who has
access via acl) saw the mails still as unread.
Now, no matter who read the mails, the other account see the same flags,
immediately.

I read the related wiki pages again and tried to find any configuration
error, unfortunately without much success. I´ve attached output from
"doveconf -n" and a debug logfile.

Thanks a lot!
Tim
-------------- next part --------------
# 2.0.8: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.34-xen-r4 x86_64 Gentoo Base System release 1.12.14 reiserfs
auth_master_user_separator = *
auth_mechanisms = plain login cram-md5
base_dir = /var/run/dovecot/
dict {
  quota = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
disable_plaintext_auth = no
first_valid_gid = 12
first_valid_uid = 8
hostname = mail1.test-domain.lan
last_valid_gid = 12
last_valid_uid = 8
lda_mailbox_autosubscribe = yes
listen = *
mail_debug = yes
mail_gid = mail
mail_location = maildir:/var/mail/%d/%n/Maildir/:INDEX=/var/mail/%d/%n/indexes
mail_plugins = quota acl trash
mail_privileged_group = mail
mail_uid = mail
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
namespace {
  inbox = yes
  list = yes
  location = 
  prefix = 
  separator = /
  subscriptions = yes
}
namespace {
  inbox = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
  prefix = user/%%u/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  driver = shadow
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  acl = vfile:/etc/dovecot/global-acls:cache_secs=300
  acl_shared_dict = file:/var/mail/shared-mailboxes.db
  autocreate = Spam
  autosubscribe = Spam
  fts = squat
  fts_squat = partial=4 full=10
  quota = dict:user::proxy::quota
  quota_rule = *:storage=1G
  quota_rule2 = Trash:storage=+100M
  quota_rule3 = Spam:ignore
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /var/lib/dovecot/sieve/global/
}
postmaster_address = postmaster at test-domain.lan
protocols = imap pop3 sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = mail
  }
}
service dict {
  unix_listener dict {
    group = mail
    mode = 0660
    user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  inet_listener sieve_deprecated {
    port = 2000
  }
  process_min_avail = 0
  service_count = 1
  vsz_limit = 64 M
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    user = mail
  }
  user = dovecot
}
ssl_cert = </etc/ssl/cacert/mail.crt
ssl_key = </etc/ssl/cacert/mail.key
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocol lda {
  info_log_path = /var/log/dovecot.log
  mail_plugins = quota acl sieve
}
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
  imap_idle_notify_interval = 2 mins
  mail_plugins = quota imap_quota acl imap_acl autocreate notify fts fts_squat
}
protocol sieve {
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_line_length = 65536
}
-------------- next part --------------
Dec  7 15:51:33 mail1 dovecot: master: Dovecot v2.0.8 starting up
Dec  7 15:51:38 mail1 dovecot: auth: mysql: Connected to /var/run/mysqld/mysqld.sock (postfix)
Dec  7 15:51:38 mail1 dovecot: imap-login: Login: user=<test1 at test-domain.lan>, method=PLAIN, rip=192.168.2.112, lip=192.168.2.50, mpid=12164, TLS
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_autocreate_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_fts_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib21_fts_squat_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=10240000
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Effective uid=8, gid=12, home=/var/mail/test-domain.lan/test1/
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota root: name=user backend=dict args=:proxy::quota
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota rule: root=user mailbox=* bytes=10240000 messages=0
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota rule: root=user mailbox=Trash bytes=+104857600 messages=0
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota rule: root=user mailbox=Spam ignored
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota warning: bytes=9728000 (95%) messages=0 reverse=no command=quota-warning 95 test1 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Quota warning: bytes=8192000 (80%) messages=0 reverse=no command=quota-warning 80 test1 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: dict quota: user=test1 at test-domain.lan, uri=proxy::quota, noenforcing=0
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/test-domain.lan/test1/Maildir/:INDEX=/var/mail/test-domain.lan/test1/indexes
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: maildir++: root=/var/mail/test-domain.lan/test1/Maildir, index=/var/mail/test-domain.lan/test1/indexes, control=, inbox=/var/mail/test-domain.lan/test1/Maildir
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: initializing backend with data: vfile:/etc/dovecot/global-acls:cache_secs=300
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: acl username = test1 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: owner = 1
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl vfile: Global ACL directory: /etc/dovecot/global-acls
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Namespace : type=shared, prefix=user/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:%h/Maildir:INDEX=~/Maildir/shared/%u
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox=
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: initializing backend with data: vfile:/etc/dovecot/global-acls:cache_secs=300
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: acl username = test1 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl: owner = 0
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl vfile: Global ACL directory: /etc/dovecot/global-acls
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: acl vfile: reading file /etc/dovecot/global-acls//.DEFAULT
Dec  7 15:51:38 mail1 dovecot: imap(test1 at test-domain.lan): Debug: Namespace : Using permissions from /var/mail/test-domain.lan/test1/Maildir: mode=0700 gid=-1
Dec  7 15:51:38 mail1 dovecot: auth: mysql: Connected to /var/run/mysqld/mysqld.sock (postfix)
Dec  7 15:51:38 mail1 dovecot: imap-login: Login: user=<test2 at test-domain.lan>, method=PLAIN, rip=192.168.2.112, lip=192.168.2.50, mpid=12167, TLS
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_autocreate_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_fts_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib21_fts_squat_plugin.so
Dec  7 15:51:38 mail1 dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=10240000
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Effective uid=8, gid=12, home=/var/mail/test-domain.lan/test2/
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota root: name=user backend=dict args=:proxy::quota
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota rule: root=user mailbox=* bytes=10240000 messages=0
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota rule: root=user mailbox=Trash bytes=+104857600 messages=0
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota rule: root=user mailbox=Spam ignored
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota warning: bytes=9728000 (95%) messages=0 reverse=no command=quota-warning 95 test2 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Quota warning: bytes=8192000 (80%) messages=0 reverse=no command=quota-warning 80 test2 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: dict quota: user=test2 at test-domain.lan, uri=proxy::quota, noenforcing=0
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/test-domain.lan/test2/Maildir/:INDEX=/var/mail/test-domain.lan/test2/indexes
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: maildir++: root=/var/mail/test-domain.lan/test2/Maildir, index=/var/mail/test-domain.lan/test2/indexes, control=, inbox=/var/mail/test-domain.lan/test2/Maildir
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: initializing backend with data: vfile:/etc/dovecot/global-acls:cache_secs=300
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: acl username = test2 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: owner = 1
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl vfile: Global ACL directory: /etc/dovecot/global-acls
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Namespace : type=shared, prefix=user/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:%h/Maildir:INDEX=~/Maildir/shared/%u
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox=
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: initializing backend with data: vfile:/etc/dovecot/global-acls:cache_secs=300
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: acl username = test2 at test-domain.lan
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl: owner = 0
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl vfile: Global ACL directory: /etc/dovecot/global-acls
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: acl vfile: reading file /etc/dovecot/global-acls//.DEFAULT
Dec  7 15:51:38 mail1 dovecot: imap(test2 at test-domain.lan): Debug: Namespace : Using permissions from /var/mail/test-domain.lan/test2/Maildir: mode=0700 gid=-1
Dec  7 15:51:38 mail1 dovecot: auth: mysql: Connected to /var/run/mysqld/mysqld.sock (postfix)



More information about the dovecot mailing list