1

Topic: Cannot access shared IMAP folder

After i have shared "test123" IMAP folder with user1@example.com using SoGo web UI
I cannot access it from user1@example.com

SoGo web UI throw the following error:

Jul 26 07:59:11 sogod [2758]: [ERROR] <0x0x809130128[NGImap4Connection]> could not select URL: imap://user1%40example.com@127.0.0.1/Shared/user2@example.com/test123/: {RawResponse = "{ResponseResult = {description = \" Character not allowed
in mailbox name: '.' (0.002 + 0.100 + 0.100 secs).\"; flag = CANNOT; result = no; tagId = 10; }; ok = {CLOSED = \"Previous mailbox closed.\"; }; }"; access = CANNOT; reason = " Character not allowed in mailbox name: '.' (0.002 + 0.100 +
0.100 secs)."; result = 0; }

Thunderbird throw the same one.

/usr/local/etc/dovecot/dovecot.conf
...
namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln

    # this namespace should handle its own subscriptions or not.
    subscriptions = yes
    list = children
}
....

What is the problem?


- iRedMail version 0.9.9 MYSQL edition.
- Deployed with the downloadable installer?
- FreeBSD 12.0-RELEASE FreeBSD 12.0-RELEASE NS2_KERNEL  amd64
- Store mail accounts in which MySQL backend
- Web server - Nginx
- Manage mail accounts with iRedAdmin-Pro? No

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Cannot access shared IMAP folder

I found a solution:

Maildir++ layout disallows using the '.' character (unless LAYOUT=fs is used), since it's used internally as the folder hierarchy separator.
Allow '.' characters with Maildir++ layout when virtual hierarchy separator is changed to '/' (it could be anything else except '.' itself):

add to /usr/local/etc/dovecot/dovecot.conf

mail_plugins = $mail_plugins listescape

more info at https://wiki.dovecot.org/Plugins/Listescape

3

Re: Cannot access shared IMAP folder

Thanks for sharing. smile