[Dovecot] read only FS access
Hello,
I would like to know if it's possible to subscribe to a folder that is on a read only File System ?
We have a snapshot mechanism that create a .snapshot directly in the user folder. This is done by our NAS and we would like to give an access to this backup to our users.
Thanks.
Asheesh Laroia a écrit :
My problem is that dovecot complain when I subscribe to the folder in read only I've found this (after my e-mail to this list, forgive me :) ) http://markmail.org/message/l7rybsx27ofq57cp#query:dovecot%20read%20only+pag...
But could someone tell me if it's working now ? Because it's a little bit old !
Timo Sirainen a écrit :
Thunderbird : internal error occured. Refer to server log for more information
Oct 29 16:08:58 myserver dovecot: IMAP(imap1): utime(/data/maildir/i/imap1/.backup/tmp) failed: Read -only file system Oct 29 16:08:58 myserver dovecot: IMAP(imap1): open(/data/maildir/i/imap1/.backup/dovecot-uidlist.lo ck) failed: Read-only file system Oct 29 16:08:58 myserver dovecot: IMAP(imap1): file_dotlock_create(/data/maildir/i/imap1/.backup/dov ecot-uidlist) failed: Read-only file system
And my goal is to give access to user at this .backup folder that contains snapshot .
The dovecot -n output for namespace :
namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: public separator: / prefix: SharedEquipe/ location: maildir:/data/imap/shared list: yes subscriptions: yes
On Wed, 2008-10-29 at 16:21 +0100, Mathieu Kretchner wrote:
Hmm. This isn't really a problem. Perhaps I should even hide this error message.
This is a problem. Dovecot must be able to create dovecot-uidlist file. You could place all the control files to a different directory though, for example:
mail_location = maildir:~/Maildir:CONTROL=~/Maildir/dovecot:INDEX=~/Maildir/dovecot
Indexes don't really matter, but performance is better if they exist.
Anyway if you already have users using the mails, you should copy/move all the dovecot* files to ~/Maildir/dovecot/ under the correct directories. dovecot-uidlist and dovecot-keywords most importantly, otherwise the users will redownload all their mails and lose any message keywords they've set.
participants (3)
-
Asheesh Laroia
-
Mathieu Kretchner
-
Timo Sirainen