Re: [Dovecot] Problems with Shared Mailbox
On Fri, May 11, 2007 at 03:07:12PM +0300, Timo Sirainen wrote: > On Mon, 2007-05-07 at 14:11 +0200, Gerhard Schmidt wrote: > > location = > > mbox:/var/mail/shared:CONTROL=/var/mail/shared/.control:INDEX=/var/mail/shared/.index > > mbox has no CONTROL directory. I've got this line from an Example on the Web. > > -rw-rw 1 dovecot vhsal 0 May 7 13:50 dovecot-shared > > -rw--- 1 estartu vhsal376 May 7 13:53 dovecot.index > > -rw-rw 1 dovecot vhsal 23552 May 7 13:53 dovecot.index.cache > > -rw-rw 1 dovecot vhsal 7116 May 7 13:53 dovecot.index.log > > > > How can I gate dovecot to set the permissions of this files to rw-rw > > mbox doesn't support dovecot-shared file either. So unfortunately this > won't work. > > Also if you used maildir, the dovecot-shared would have to be in the > maildir directory, not in the index directory. It was a Test. Didn't expect it to work. I've check the soucecode some. In lib-index/mail-index.c the file rights for the index files are hard set to 0600. I've changed this to 0660 and mbox shared mailboxes do function. It might be a bood idea to make this configurable. e.g. location = mbox:/var/mail/shared:INDEX=/var/mail/shared/.index;0660 Stetting the index mode globaly to 0660 is no problem in the enoirement my server is running but it is not option for most of the others. Bye Estartu -- Gerhard Schmidt| Nick : estartu IRC : Estartu | Fischbachweg 3 || PGP Public Key 86856 Hiltenfingen | EMail: [EMAIL PROTECTED] | on request Germany|| pgpT5wKoYxPdA.pgp Description: PGP signature
[Dovecot] Problems with Shared Mailbox
Hi, i've installed dovecot on a new mailserverand try to set up some shared mailboxes. I have everiting up an runnig so far. I have 3 mboxes to be shared. I have use the following setup namespace private { separator = prefix = location = inbox = yes hidden = yes } namespace public { separator = / prefix = zentrale/ location = mbox:/var/mail/shared:CONTROL=/var/mail/shared/.control:INDEX=/var/mail/shared/.index } the problem is with the dovecot.index files [EMAIL PROTECTED] /var/mail/shared/.index]# ls -alR total 6 drwxrwx--- 3 dovecot vhsal 512 May 7 13:49 . drwxrwx--- 4 mailnull vhsal 512 May 7 13:52 .. drwxrwx--- 5 dovecot vhsal 512 May 7 13:49 .imap -rw-rw 1 dovecot vhsal0 May 7 13:49 dovecot-shared ./.imap: total 10 drwxrwx--- 5 dovecot vhsal 512 May 7 13:49 . drwxrwx--- 3 dovecot vhsal 512 May 7 13:49 .. drwxrwx--- 2 dovecot vhsal 512 May 7 13:50 Eingang drwxrwx--- 2 dovecot vhsal 512 May 7 13:49 Erledigt drwxrwx--- 2 dovecot vhsal 512 May 7 13:50 Spam -rw-rw 1 dovecot vhsal0 May 7 13:49 dovecot-shared ./.imap/Eingang: total 38 drwxrwx--- 2 dovecot vhsal512 May 7 13:50 . drwxrwx--- 5 dovecot vhsal512 May 7 13:49 .. -rw-rw 1 dovecot vhsal 0 May 7 13:50 dovecot-shared -rw-rw 1 dovecot vhsal896 May 7 13:51 dovecot.index -rw-rw 1 dovecot vhsal 23552 May 7 13:51 dovecot.index.cache -rw-rw 1 dovecot vhsal 6824 May 7 13:51 dovecot.index.log ./.imap/Erledigt: total 30 drwxrwx--- 2 dovecot vhsal512 May 7 13:49 . drwxrwx--- 5 dovecot vhsal512 May 7 13:49 .. -rw-rw 1 dovecot vhsal 0 May 7 13:49 dovecot-shared -rw-rw 1 dovecot vhsal456 May 7 13:52 dovecot.index -rw-rw 1 dovecot vhsal 20480 May 7 13:45 dovecot.index.cache -rw-rw 1 dovecot vhsal 3364 May 7 13:52 dovecot.index.log ./.imap/Spam: total 26 drwxrwx--- 2 dovecot vhsal512 May 7 13:50 . drwxrwx--- 5 dovecot vhsal512 May 7 13:49 .. -rw-rw 1 dovecot vhsal 0 May 7 13:50 dovecot-shared -rw-rw 1 dovecot vhsal240 May 7 13:51 dovecot.index -rw-rw 1 dovecot vhsal 17408 May 7 13:45 dovecot.index.cache -rw-rw 1 dovecot vhsal648 May 7 13:51 dovecot.index.log When the directory is setup like this everthing works as planed. But sometimes (havn't quite figured when exactly the dovecot.index file of one of the Mailboxes is regenated with the false permissions set ./.imap/Eingang: total 38 drwxrwx--- 2 dovecot vhsal512 May 7 13:53 . drwxrwx--- 5 dovecot vhsal512 May 7 13:49 .. -rw-rw 1 dovecot vhsal 0 May 7 13:50 dovecot-shared -rw--- 1 estartu vhsal376 May 7 13:53 dovecot.index -rw-rw 1 dovecot vhsal 23552 May 7 13:53 dovecot.index.cache -rw-rw 1 dovecot vhsal 7116 May 7 13:53 dovecot.index.log How can I gate dovecot to set the permissions of this files to rw-rw I am using Dovecot v1.0.rc29 Regards Gerhard Schmidt -- -------- Gerhard Schmidt| Nick : estartu IRC : Estartu | Fischbachweg 3 || PGP Public Key 86856 Hiltenfingen | EMail: [EMAIL PROTECTED] | on request Germany|| pgpk2zWyCR3cN.pgp Description: PGP signature