I have some problems with setting shared mailboxes . I use dovecot 1.2.11 with following namespaces : mail_location: maildir:~ namespace: type: private separator: . inbox: yes list: yes subscriptions: yes namespace: type: private separator: . prefix: INBOX. hidden: yes list: no subscriptions: yes namespace: type: shared separator: . prefix: shared.%%n. location: maildir:/home/sites/%d/mail/%%n/Maildir/ list: children plugin: acl: vfile acl_shared_dict: proxy::acl dict: acl: mysql:/usr/local/etc/dovecot-share-sql.conf In the private namespace I use to have only INBOX. space because I have migrate from courier and I ahave problemes with duplicate folders. The disk structure looks like : /home/sites/domain.tld/mail/user(withoutdomain)/Maildir What I'am trying to do is to give access to a user (user2 at domain.tld) some other user mailbox (user1 at domain.tld). in the /home/sites/domain.tld/mail/user1/Maildir I have created a file dovecot-acl with : owner lrwstipekxa user=user2 at domain.tld rl - in the dovecot-share-sql.conf I have : connect = host=/var/lib/mysql/mysql.sock dbname=xxxx user=xxx password=postfixpass map { pattern = shared/shared-boxes/user/$to/$from table = user_shares value_field = dummy fields { from_user = $from to_user = $to } } and in the user_share table : +-------------------+------------------+-------+ | from_user | to_user | dummy | +-------------------+------------------+-------+ | user1 at myhost.ro | user2 at domain.tld | 1 | | user1 | user2 | 1 | +-------------------+------------------+-------+ (not sure what I need %n or %u) Now , in TB under the user2 , if I check subscribe , under the shared, I have a INBOX folder that is always check but nothing else. From what I understand I suppose to see user1 folders and I think it is something wrong with my config (namespaces, paths). If someone have succeeded to configure dovecot with shared mailboxes and namespaces that use . as separator please help me. Alex.
On Mon, 2010-09-06 at 18:23 +0300, alex wrote:> I have some problems with setting shared mailboxes . I use dovecot > 1.2.11 with following namespaces : > > mail_location: maildir:~okay.> location: maildir:/home/sites/%d/mail/%%n/Maildir/For consistency this would also be clearer if it was: location = maildir:%%h Although, do you really have the Maildir/ path included in users' home dirs? That's not right. http://wiki.dovecot.org/VirtualUsers/Home> in the /home/sites/domain.tld/mail/user1/Maildir I have created a file > dovecot-acl with :You should use IMAP's SETACL commands to change the ACLs. I can't remember the details of how it works either.> Now , in TB under the user2 , if I check subscribe , under the shared, I > have a INBOX folder that is always check but nothing else. From what I > understand I suppose to see user1 folders and I think it is something > wrong with my config (namespaces, paths).You shared only user1's INBOX to user2. User2 can't see anything else without user1 sharing them. There's currently no way to set "share all of user1's mailboxes to user2".
On 09/14/2010 01:30 PM, Timo Sirainen wrote:> On Tue, 2010-09-14 at 12:54 +0300, alex wrote: > >> * LSUB () "/" "shared//INBOX" > > This is wrong .. What do you have in subscriptions file? > >I know.. This is the user2 subscription file: # cat /home/sites/domain.tld/mail/user2/Maildir/subscriptions Trash Sent Drafts INBOX Spam shared/user1/INBOX shared/user1/Spam
Seemingly Similar Threads
- possible patch for ACL SQL ERROR: duplicate key value violates unique constraint "user_shares_pkey"
- Again ACL Postgres dict trouble, no update and raw backtrace
- Listing shared mailboxes with a domainpart
- ACL with MySQL dict => full table scans
- Dovecot v1.2rc6 dict-server socket path problem & pgsql crash