subscribe users mailbox with non-valid mutf7 chars

Matthias Lay matthias.lay at securepoint.de
Wed Mar 16 14:24:13 UTC 2016


did some more testing on this and encoutnered its even not working when
using filesystem links AND encoding the username in mutf7.

it ends up in the same error than doveadm subscribe.



what i tried:

* renamed public folder on FS to mutf7:

"a & p products group" => "a &- p products group"

* created link in the users Maildir:

private/franzf/Maildir# ll public/a\ \&-\ p\ products\ group/
total 8K
drwxr-xr-x 2 vmail vmail 4096 Mar 16 15:09 .
drwxr-xr-x 5 vmail vmail 4096 Mar 16 15:06 ..
lrwxrwxrwx 1 vmail vmail   56 Mar 16 15:09 LTA
-> /var/data/vmail/public/a &- p products group/Maildir/LTA


* trying to select the folder in imap:



4 select "public/a &- p products group/LTA/forever"
imap(franzf): Debug: fs: root=/var/data/vmail/public/a &- p products
group/Maildir, index=, indexpvt=, control=,
inbox=/var/data/vmail/public/a &- p products group/Maildir/INBOX, alt=
imap(franzf): Debug: acl: initializing backend with data:
vfile:/etc/dovecot/acls/acl-defaults imap(franzf): Debug: acl: acl
username = a &- p products group imap(franzf): Debug: acl: owner = 1
imap(franzf): Debug: acl vfile: Global ACL
file: /etc/dovecot/acls/acl-defaults imap(franzf): Debug: fs:
root=/var/data/vmail/public/a &- p products group/Maildir, index=,
indexpvt=, control=, inbox=/var/data/vmail/public/a &- p products
group/Maildir/INBOX, alt= imap(franzf): Debug: acl: initializing
backend with data: vfile:/etc/dovecot/acls/acl-defaults imap(franzf):
Debug: acl: acl username = franzf imap(franzf): Debug: acl: owner = 0
imap(franzf): Debug: acl vfile: Global ACL
file: /etc/dovecot/acls/acl-defaults 4 NO [CANNOT] Invalid mailbox name
'public/a & p products group/LTA/forever': Missing namespace prefix
'public/a &- p products group/' (0.000 secs).




the same procedure works great with every Ascii Username.



On Tue, 9 Feb 2016 12:31:31 +0100
Matthias Lay <matthias.lay at securepoint.de> wrote:

> 
> Hi all,
> 
> I got a question if its possible to subscribe a mailbox from another
> user, who contains non mutf7 valid chars in his mailbox path.
> 
> 
> I have a private namespace which can subscribe to mailboxes of a
> shared namespace with public/ prefix
> 
> in this example
> username in private namespace is johnd
> public username is "a & p products group"
> 
> 
> when I try the subscription I get this one:
> 
> ********************************************
> # doveadm mailbox subscribe -u johnd "public/a & p products
> group/INBOX" doveadm(johnd): Error: Can't public/a & p products
> group/INBOX mailbox subscribe to: Invalid mailbox name 'public/a & p
> products group/INBOX': Missing namespace prefix 'public/a &- p
> products group/' ********************************************
> 
> 
> is there a way to work around this? (except for not to use usernames
> like this)
> 
> 
> 
> greetz matze



More information about the dovecot mailing list