[Dovecot] Maildir "locking"

Timo Sirainen tss at iki.fi
Thu Sep 15 11:39:22 EEST 2011


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





More information about the dovecot mailing list