[Dovecot] Maildir "locking"
Attila Nagy
bra at fsn.hu
Thu Sep 15 12:37:12 EEST 2011
On 09/15/11 10:39, Timo Sirainen wrote:
> On Thu, 2011-09-15 at 10:25 +0200, Attila Nagy wrote:
>>>> What is the best way to do this? If there is no such thing currently,
>>>> would it be hard to implement the sticky bit checking on the root?
>>> dovecot-uidlist.lock basically does this. Dovecot comes with maildirlock
>>> utility to properly create it. How long would your locks be? They are
>>> assumed stale after 2 minutes if you don't update the mtime. Readers
>>> will block and if they're still locked after 2 minutes they'll abort (if
>>> mtime has been changed). There's also mail_max_lock_timeout setting that
>>> changes this wait (you could e.g. lower it only with lmtp).
>>>
>> Well, basically "forever" in the sense that I would like to move the
>> mailbox to a different machine,
> So you have a proxy that decides what backend server the connections are
> redirected to? How about you do it completely without locking with
> dsync? Moving between servers works basically the same as converting a
> mailbox format, with the difference of "changing mail_location" you
> "change backend server".
> http://wiki2.dovecot.org/Tools/Dsync#example_converting
>
Yes, there is a proxy in front of the servers. Is dsync usable with 3rd
party maildir programs? (not only Dovecot uses these mailboxes)
More information about the dovecot
mailing list