diff dovecot-example.conf @ 643:da34bdd4e0c6 HEAD

Added mbox lock settings to config file. Support timeouting fcntl() and flock() locks. Plus before the fcntl/flocks weren't even set.
author Timo Sirainen <tss@iki.fi>
date Thu, 21 Nov 2002 22:13:32 +0200
parents 0d852af6842e
children 415498fa78d6
line wrap: on
line diff
--- a/dovecot-example.conf	Thu Nov 21 16:56:07 2002 +0200
+++ b/dovecot-example.conf	Thu Nov 21 22:13:32 2002 +0200
@@ -177,6 +177,26 @@
 # down things as extra stat() needs to be called for each file.
 #maildir_check_content_changes = no
 
+# Which locking methods to use for locking mbox. All of them are used by
+# default. flock is ignored in systems which don't have it. Note that the
+# order of fcntl and flock are important to prevent deadlocks if they're both
+# also used by other programs accessing the mailbox. Dotlock file is always
+# created first.
+#mbox_locks = dotlock fcntl flock
+
+# Should we create dotlock file even when we want only a read-lock? Setting
+# this to yes hurts the performance when the mailbox is accessed simultaneously
+# by multiple processes, but it's needed for reliable reading if no other
+# locking methods are available.
+#mbox_read_dotlock = no
+
+# Maximum time in seconds to wait for lock (all of them) before aborting.
+#mbox_lock_timeout = 300
+
+# If dotlock exists but the mailbox isn't modified in any way, override the
+# lock file after this many seconds.
+#mbox_dotlock_change_timeout = 30
+
 # If main index file is incompatible with us, should we overwrite it or
 # create a new index with another name. Unless you are running Dovecot in
 # multiple computers with different architectures accessing the same