1 (edited by androld 2016-10-06 20:34:36)

Topic: [Solved] Shared folders not listing (iRedMail+AD)

Hi!
==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.5-1
- Linux/BSD distribution name and version: centos-release-6-8.el6.centos.12.3.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Windows 2008R2 Active Directory
- Web server (Apache or Nginx): Apache/2.2.15
- Manage mail accounts with iRedAdmin-Pro? No
- post domain: mailmail.com
- AD domain: inner.corp
====

All works fine. But...
All incoming mail BCC'ed to income@ mailbox and all outgoing mail BCC'ed to outcome@ mailbox

user androld@ must have read-only acces to income@ INBOX and outcome@ INBOX for inner security purposes.
those INBOXes shared by rouncube interface, dovecot-acl auto-created in Mailboxes

I have some problem sad Shared INBOX not shown in androld@ by roundcube interface.

I try to change line in dovecot.conf to:

location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u

But option INDEXPVT can use with dovecot ver.2.2; in my system used dovecot ver.2.1.17
Now I use

location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEX=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u

Some tests and logs:

[root@mail ~]# doveadm acl get -u income inbox
ID                       Global Rights                                  
user=androld@mailmail.com        lookup read write-seen  

Then I connect to dovecot by telnet and list folders, I not see Shared folder:

[root@mail ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. login androld@mailmail.com password
. OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA ACL RIGHTS=texk] Logged in
. list "" "*"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Junk"
* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
. OK List completed.
^]
telnet> quit
Connection closed.

dovecot.log:

[root@mail ~]# tail -f -n 50 /var/log/dovecot.log | grep androld
Oct 05 17:30:27 imap-login: Info: Login: user=<androld@mailmail.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4542, secured, session=<u7O4BB8+JAB/AAAB>
Oct 05 17:30:27 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 1
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/:INDEX=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/%u
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: shared: root=/var/run/dovecot, index=, control=, inbox=, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: reading file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Sent/dovecot-acl
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Junk/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Drafts/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Trash/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: reading file /var/vmail/vmail1/mailmail.com/androld/Maildir/dovecot-acl
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: auth input: outcome@mailmail.com home=/var/vmail/vmail1/mailmail.com/outcome/Maildir/ mail=maildir:/var/vmail/vmail1/mailmail.com/outcome/Maildir/ quota_rule=*:bytes=20000000000
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/outcome@mailmail.com, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Sent
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Junk
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Drafts
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Trash
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/INBOX
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: auth input: income@mailmail.com home=/var/vmail/vmail1/mailmail.com/income/Maildir/ mail=maildir:/var/vmail/vmail1/mailmail.com/income/Maildir/ quota_rule=*:bytes=20000000000
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/income@mailmail.com, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Sent
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Junk
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Drafts
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Trash
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/INBOX
Oct 05 17:30:28 imap(androld@mailmail.com): Info: Disconnected: Logged out in=248 out=941

Help me please!

P.S. Sorry for my English

----

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

2

Re: [Solved] Shared folders not listing (iRedMail+AD)

Did you subscribe to the shared mailbox in Roundcube (Settings -> Folders)?

It's no Shared mailbox in Roundcube, so I can not subcribe to it.

3

Re: [Solved] Shared folders not listing (iRedMail+AD)

Hurray! УРА!!!
It's my error - I didn't use Copy/Paste and whet manually write miss one '%' in string 'location'.
I find and correct it - and all WORKS!!!

Part of my working config:

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEX=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u
    subscriptions = yes
    list = children
....
    mailbox INBOX {
        auto = subscribe
    }
}

Thanks to ALL!