[Dovecot] INBOX of a shared namespace appears to be always subscribed
In dovecot 1.2.10 I run into the following problem: Our users are
entitled to share their personal mailboxes. This works. But if user A
shares any of its mailboxes with user B, then dovecot always reports
the INBOX of user A as subscribed by user B. No matter whether user B
really subscribed the INBOX of A, or whether user A permitted user B
the access to its INBOX. The problem is caused by the repeated call of
LSUB. Starting with the second call LSUB always shows INBOX as
subscribed.
To reproduce: -> telnet imap.xx.yy 143 1 LOGIN user password 2 LSUB "" shared/* => shows shared/UserB/folderXX 3 LSUB "" shared/* => shows shared/UserB/INBOX shared/UserB/folderXX 4 LSUB "" shared/* => shows shared/UserB/INBOX shared/UserB/folderXX
Regards, Holger
I've repeated the tests with LSUB "" *. I think there's a problem with setting the namespace prefix.
telnet imap.xx.yy 143 1 LOGIN user password 2 LSUB "" * => shows INBOX Sent Trash folderAA shared/UserB/folderXX 3 LSUB "" * => shows shared/UserB/INBOX shared/UserB/folderXX Sent Trash folderAA 4 LSUB "" * => shows shared/UserB/INBOX shared/UserB/folderXX Sent Trash folderAA
This behavior is reproducable. Please note that the mailboxes of the shared namespace are listed first and the own inbox of the user disappears.
Holger
On Fri, 2010-03-12 at 12:17 +0100, Holger Richter wrote:
I've repeated the tests with LSUB "" *. I think there's a problem with setting the namespace prefix.
Before I'll test further.. What do your namespace settings look like in dovecot -n output?
On Fri, 2010-03-12 at 12:17 +0100, Holger Richter wrote:
I've repeated the tests with LSUB "" *. I think there's a problem with setting the namespace prefix.
Before I'll test further.. What do your namespace settings look like in dovecot -n output?
Here's the relevant extract of the output of dovecot -n:
# 1.2.10: /etc/dovecot.neu/dovecot.conf
# OS: Linux 2.6.27.39 x86_64
mail_privileged_group: mail
mail_cache_min_mail_count: 10
mail_plugins: acl imap_acl quota imap_quota trash fts fts_squat listescape
imap_client_workarounds: delay-newmail outlook-idle
namespace:
type: private
separator: /
location: maildir:/srv/mail.neu/dirs/%u:INBOX=/srv/mail.neu/dirs/%u/.INBOX:INDEX=/srv/mail.neu/meta/%u/index:CONTROL=/srv/mail.neu/meta/%u/control
inbox: yes
list: yes
subscriptions: yes
namespace:
type: shared
separator: /
prefix: shared/%%u/
location: maildir:/srv/mail.neu/dirs/%%u:INDEX=/srv/mail.neu/meta/%u/shared/%%u/index:CONTROL=/srv/mail.neu/meta/%u/shared/%%u/control
list: children
namespace:
type: public
separator: /
prefix: Mailarchiv/
location: maildir:/srv/mail.neu/dirs/archive:INDEX=/srv/mail.neu/meta/%u/archive/index:CONTROL=/srv/mail.neu/meta/archive/control
hidden: yes
list: children
namespace:
type: public
separator: /
prefix: public/
location: maildir:/srv/mail.neu/dirs/public:INDEX=/srv/mail.neu/meta/%u/public/index:CONTROL=/srv/mail.neu/meta/public/control
list: yes
plugin:
quota: maildir
quota_rule: *:storage=1G
quota_rule2: Trash:storage=100M
quota_warning: storage=100%% /usr/local/bin/mailquota 100
quota_warning2: storage=98%% /usr/local/bin/mailquota 98
trash: /etc/dovecot.neu/dovecot-trash.conf
fts: squat
acl: vfile
acl_shared_dict: proxy::acl
dict:
acl: mysql:/etc/dovecot.neu/dovecot-dict-sql.conf
I should mention another amazing fact. The LIST "" * command shows all mailboxes in all namespaces for which the user has the l(ist) permission but the INBOXES of other users are never listed. But the myrights command shows that the ACLs are correct.
Holger
On Tue, 2010-03-16 at 17:49 +0100, Holger Richter wrote:
On Fri, 2010-03-12 at 12:17 +0100, Holger Richter wrote:
I've repeated the tests with LSUB "" *. I think there's a problem with setting the namespace prefix.
Before I'll test further.. What do your namespace settings look like in dovecot -n output?
Here's the relevant extract of the output of dovecot -n:
Well, I'll try to reproduce it, but a few things could be changed anyway:
namespace: type: shared separator: / prefix: shared/%%u/ location: maildir:/srv/mail.neu/dirs/%%u:INDEX=/srv/mail.neu/meta/%u/shared/%%u/index:CONTROL=/srv/mail.neu/meta/%u/shared/%%u/control list: children
With this setup IMAP keywords (=labels/custom flags) will be messed up. CONTROL should point to the user's directory. Then also set subscriptions=no so subscriptions will be saved to user's primary subscriptions file.
namespace: type: public separator: / prefix: Mailarchiv/ location: maildir:/srv/mail.neu/dirs/archive:INDEX=/srv/mail.neu/meta/%u/archive/index:CONTROL=/srv/mail.neu/meta/archive/control hidden: yes list: children
Similar problem here, unless you intended to force users to be subscribed to same public mailboxes (which is what this currently does).
namespace: type: public separator: / prefix: public/ location: maildir:/srv/mail.neu/dirs/public:INDEX=/srv/mail.neu/meta/%u/public/index:CONTROL=/srv/mail.neu/meta/public/control list: yes
Same as above.
There was an other problem. I forgot to remove the .INBOX
subdirectories. They were a rudiment of earlier tests. Well, I've
removed them, and the original problem is resolved. But now I run into
another trouble. The users cannot subscribe to the inboxes other
users. The inbox paths in the shared namespace point to the namespace
prefixes of the users' shared namespace. And they are marked with the
\Noselect flag. Thus the inboxes are unaccessible via the shared
namespace.
BTW, I've set subscriptions=no in the config file, dovecot -n lists
the subscription parameter only if it was set to yes.
Holger
Hi all
Can i use Managesieve patch for Dovecot v1.2.10 http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.10-managesieve-0.11.11.diff....
on new Dovecot version v1.2.11 http://www.dovecot.org/releases/1.2/dovecot-1.2.11.tar.gz ?
Is Dovecot gonna work correctly after compiled with SIEVE support and this patch, or do I have to use Dovecot version 1.2.10?
Thanks, regards
*Ivica Glavočić*
Laser Line d.o.o. Tribje 17, 52470 Umag tel.: +385 52 725 600 fax: +385 52 725 610 OIB: 26680017138 mail: ivica.glavocic@laserline.hr mailto:ivica.glavocic@laserline.hr mail: sys@laserline.hr mailto:sys@laserline.hr web: http://www.laserline.hr
Am 17.03.2010 17:45 schrieb Ivica Glavocic:
Can i use Managesieve patch for Dovecot v1.2.10 on new Dovecot version v1.2.11 at least: it compiles ;-) I will try these days
-- Andreas Schulze Internetdienste | P532
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
On 03/18/10 01:39, Andreas Schulze wrote:
Am 17.03.2010 17:45 schrieb Ivica Glavocic:
Can i use Managesieve patch for Dovecot v1.2.10 on new Dovecot version v1.2.11 at least: it compiles ;-) I will try these days
participants (5)
-
Andreas Schulze
-
Holger Richter
-
Ivica Glavocic
-
Michael Orlitzky
-
Timo Sirainen