Topic: shared folder not working with ldap -- SOLVED
hi all,
i just can't get shared folder to work.
i've installed the latest iredmail (0.70 rc1) on a fresh ubuntu 10.04. then i followed the instructions from http://www.iredmail.org/wiki/index.php? … MAP.Folder. most of the things are already set in the latest release rc1 i only needed to enable acl and imap_acl in dovecot.conf.
the instructions in the wiki partially use different mysql users than the current files (vmailuser vs. iredadmin), also the mysql table "share_folder"" does belong to the database "iredadmin" instead of "vmail".. but when i set acls via telnet the table in mysql gets properly filled with an entry so this seems to work.
via telnet i've shared the folder "Sent" of the user www@ like in the instructions.
i set mail_debug to yes in dovecot, this is what i get when i log in as www:
--
Mar 23 20:38:25 imap-login: Info: Login: user=<www@rendertaxi.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Effective uid=1000, gid=1000, home=/var/vmail
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Effective uid=1000, gid=1000, home=/var/vmail
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota rule: root=user mailbox=* bytes=104857600 messages=0
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=89128960 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=94371840 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=99614720 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: dict quota: user=www@rendertaxi.de, uri=proxy::quotadict, noenforcing=0
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota rule: root=user mailbox=* bytes=104857600 messages=0
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=89128960 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=94371840 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: maildir: data=~/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Quota warning: bytes=99614720 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: dict quota: user=www@rendertaxi.de, uri=proxy::quotadict, noenforcing=0
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: maildir++: root=/var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir, index=, control=, inbox=/var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: initializing backend with data: vfile
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: acl username = www@rendertaxi.de
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: owner = 1
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: maildir: data=~/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: Global ACL directory: (null)
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: maildir++: root=/var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir, index=, control=, inbox=/var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace: type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: initializing backend with data: vfile
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: shared: root=, index=, control=, inbox=
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: acl username = www@rendertaxi.de
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl: owner = 1
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: Global ACL directory: (null)
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace : Using permissions from /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir: mode=0700 gid=-1
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace: type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: shared: root=, index=, control=, inbox=
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Namespace : Using permissions from /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir: mode=0700 gid=-1
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/dovecot-acl not found
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Disconnected: Logged out bytes=254/3826
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/dovecot-acl not found
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: reading file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/.Sent/dovecot-acl
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/.Trash/dovecot-acl not found
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/.Drafts/dovecot-acl not found
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: acl vfile: file /var/vmail/vmail1/rendertaxi.de/w/ww/www/www-2011.03.23.19.03.21//Maildir/.Junk/dovecot-acl not found
Mar 23 20:38:25 dict: Error: sql dict iterate: Invalid/unmapped path: shared/shared-boxes/anyone/
Mar 23 20:38:25 IMAP(www@rendertaxi.de): Info: Disconnected: Logged out bytes=233/880
--
when i log in as another user (the one i shared the folder to), roundcube doesn't show the additional folder like in your example screenhsot from roundcube.
do i miss something? does roundcube need an additional plugin? also logging in with thunderbird doesn't offer the folder for subscription.
any help is heavily appreciated.
best regards, alex
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.